8000 Merge pull request #5174 from sjrd/gh-actions-for-windows-ci · scala-wasm/scala-wasm@62068f4 · GitHub
Skip to content

Commit 62068f4

Browse files
authored
Merge pull request scala-js#5174 from sjrd/gh-actions-for-windows-ci
Switch to GitHub Actions for the Windows CI.
2 parents 2c17a60 + 7516f1a commit 62068f4

File tree

3 files changed

+51
-32
lines changed

3 files changed

+51
-32
lines changed

.github/workflows/windows-ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Windows CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
SBT_OPTS: '-Xmx6g -Xms1g -Xss4m'
11+
12+
jobs:
13+
build:
14+
strategy:
15+
matrix:
16+
java: [ '8' ]
17+
18+
# Use the latest supported version. We will be less affected by ambient changes
19+
# due to the lack of pinning than by breakages because of changing version support.
20+
runs-on: windows-latest
21+
22+
steps:
23+
- name: Set up git to use LF
24+
run: |
25+
git config --global core.autocrlf false
26+
git config --global core.eol lf
27+
- uses: actions/checkout@v3
28+
- name: Set up JDK ${{ matrix.java }}
29+
uses: coursier/setup-action@v1
30+
with:
31+
jvm: temurin:1.${{ matrix.java }}
32+
apps: sbt
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: '24.x'
36+
cache: 'npm'
37+
- name: npm install
38+
run: npm install
39+
40+
# Very far from testing everything, but at least it is a good sanity check
41+
- name: Test suite
42+
run: sbt testSuite2_12/test
43+
- name: Linker test suite
44+
run: sbt linker2_12/test
45+
# partest is slow; only execute one test as a smoke test
46+
- name: partest smoke test
47+
run: sbt "partestSuite2_12/testOnly -- --fastOpt run/option-fold.scala"
48+
# Module splitting has some logic for case-insensitive filesystems, which we must test on Windows
49+
- name: Test suite with module splitting
50+
run: sbt 'set testSuite.v2_12/scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.ESModule).withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List("org.scalajs.testsuite"))))' testSuite2_12/test
51+
shell: bash # for the special characters in the command

appveyor.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

project/Build.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,6 @@ object MyScalaJSPlugin extends AutoPlugin {
205205
}
206206
}
207207
},
208-
209-
/* The AppVeyor CI build definition is very sensitive to weird characthers
210-
* in its command lines, so we cannot directly spell out the correct
211-
* incantation. Instead, we define this alias.
212-
*/
213-
addCommandAlias(
214-
"setSmallESModulesForAppVeyorCI",
215-
"set testSuite.v2_12 / scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.ESModule).withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List(\"org.scalajs.testsuite\"))))"
216-
),
217208
)
218209

219210
override def projectSettings: Seq[Setting[_]] = Def.settings(

0 commit comments

Comments
 (0)
0