Skip to content

Commit 5653022

Browse files
committed
add basic windows job settings
Currently, Github actions only support Linux containers.
1 parent 17f7558 commit 5653022

File tree

2 files changed

+38
-11
lines changed

2 files changed

+38
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
test:
14-
runs-on: [self-hosted, linux]
14+
runs-on: [self-hosted, Linux]
1515
container: lampepfl/dotty:2020-04-24
1616

1717
steps:
@@ -54,7 +54,7 @@ jobs:
5454
./project/scripts/cmdTests
5555
5656
test_bootstrapped:
57-
runs-on: [self-hosted, linux]
57+
runs-on: [self-hosted, Linux]
5858
container: lampepfl/dotty:2020-04-24
5959

6060
steps:
@@ -96,8 +96,35 @@ jobs:
9696
./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;configureIDE"
9797
./project/scripts/bootstrapCmdTests
9898
99+
100+
test-windows:
101+
runs-on: [self-hosted, Windows]
102+
103+
steps:
104+
- name: Git Checkout
105+
uses: actions/checkout@v2
106+
107+
- name: Test
108+
run: sbt ";compile ;test"
109+
shell: cmd
110+
111+
test_bootstrapped-windows:
112+
runs-on: [self-hosted, Windows]
113+
114+
steps:
115+
- name: Git Checkout
116+
uses: actions/checkout@v2
117+
118+
- name: Test
119+
run: sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
120+
shell: cmd
121+
122+
# - name: Scala.js Test
123+
# run: sbt ";sjsJUnitTests/test"
124+
# shell: cmd
125+
99126
community_build:
100-
runs-on: [self-hosted, linux]
127+
runs-on: [self-hosted, Linux]
101128
container: lampepfl/dotty:2020-04-24
102129

103130
steps:
@@ -138,7 +165,7 @@ jobs:
138165
./project/scripts/sbt community-build/test
139166
140167
test_sbt:
141-
runs-on: [self-hosted, linux]
168+
runs-on: [self-hosted, Linux]
142169
container: lampepfl/dotty:2020-04-24
143170
if: (
144171
github.event_name == 'push' &&
@@ -181,7 +208,7 @@ jobs:
181208
run: ./project/scripts/sbt sbt-dotty/scripted
182209

183210
test_java8:
184-
runs-on: [self-hosted, linux]
211+
runs-on: [self-hosted, Linux]
185212
container: lampepfl/dotty:2020-04-24
186213
if: (
187214
github.event_name == 'push' &&
@@ -227,7 +254,7 @@ jobs:
227254
run: ./project/scripts/sbt ";compile ;test"
228255

229256
publish_nightly:
230-
runs-on: [self-hosted, linux]
257+
runs-on: [self-hosted, Linux]
231258
container: lampepfl/dotty:2020-04-24
232259
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
233260
if: github.event_name == 'schedule'
@@ -274,7 +301,7 @@ jobs:
274301
./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
275302
276303
nightly_documentation:
277-
runs-on: [self-hosted, linux]
304+
runs-on: [self-hosted, Linux]
278305
container: lampepfl/dotty:2020-04-24
279306
needs: [publish_nightly]
280307
if: github.event_name == 'schedule'
@@ -328,7 +355,7 @@ jobs:
328355
publish_branch: gh-pages
329356

330357
publish_release:
331-
runs-on: [self-hosted, linux]
358+
runs-on: [self-hosted, Linux]
332359
container: lampepfl/dotty:2020-04-24
333360
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
334361
if: github.event_name == 'push' &&
@@ -423,7 +450,7 @@ jobs:
423450
asset_content_type: text/plain
424451

425452
release_documentation:
426-
runs-on: [self-hosted, linux]
453+
runs-on: [self-hosted, Linux]
427454
container: lampepfl/dotty:2020-04-24
428455
needs: [publish_release]
429456
if: github.event_name == 'push' &&
@@ -480,7 +507,7 @@ jobs:
480507
publish_branch: gh-pages
481508

482509
publish_sbt_release:
483-
runs-on: [self-hosted, linux]
510+
runs-on: [self-hosted, Linux]
484511
container: lampepfl/dotty:2020-04-24
485512
needs: [test, test_bootstrapped, community_build, test_sbt, test_java8]
486513
if: github.event_name == 'push' &&

compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class BootstrappedOnlyCompilationTests extends ParallelTesting {
139139
).checkRuns()
140140
}
141141

142-
@Test def runBootstrappedOnly: Unit = {
142+
@Test def runBootstrappedOnly: Unit = if (!scala.util.Properties.isWin) {
143143
implicit val testGroup: TestGroup = TestGroup("runBootstrappedOnly")
144144
aggregateTests(
145145
compileFilesInDir("tests/run-bootstrapped", withCompilerOptions),

0 commit comments

Comments
 (0)