@@ -14,21 +14,22 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v3
17
+ with :
18
+ submodules : true
19
+ fetch-depth : 0
17
20
-
uses :
coursier/[email protected]
18
21
with :
19
22
jvm : " graalvm-java17:21.3.0"
20
23
- name : Check formatting
21
24
run : ./bin/scalafmt --test
22
- test :
25
+ bridges :
26
+ name : Test platform bridges
23
27
runs-on : ${{ matrix.os }}
24
28
strategy :
25
29
fail-fast : false
26
30
matrix :
27
31
os : [ubuntu-latest, windows-latest, macOS-latest]
28
- jdk : ["graalvm-java17:21.3.0", "temurin:17"]
29
- name : Test ${{ matrix.os }} -- ${{ matrix.jdk }}
30
- env :
31
- HYDRA_LICENSE : ${{ secrets.HYDRA_LICENSE }}
32
+ jdk : ["graalvm-java17:21.3.0"]
32
33
steps :
33
34
- uses : actions/checkout@v3
34
35
with :
@@ -37,36 +38,47 @@ jobs:
37
38
-
uses :
coursier/[email protected]
38
39
with :
39
40
jvm : ${{ matrix.jdk }}
40
- - name : Set up environment
41
- run : |
42
- curl -Lo coursier https://git.io/coursier-cli && chmod +x coursier && ./coursier --help
43
- yarn --help
44
- java -version
45
- [[ $HYDRA_LICENSE == floating-key=* ]] && mkdir -p $HOME/.triplequote && echo "$HYDRA_LICENSE" > "$HOME/.triplequote/hydra.license" || echo "Hydra license file was not created"
46
- shell : bash
47
- - name : Compile and test main projects
41
+ - name : Tests
48
42
run : |
49
43
.github/setup-test-projects.sh &&\
50
44
./bin/sbt-ci.sh \
51
- "frontend/test:compile" \
52
- "backend/test" \
53
45
"jsBridge06/publishLocal" \
54
46
"jsBridge1/publishLocal" \
55
- "frontend/testOnly bloop.ScalaVersionsSpec" \
56
- "frontend/testOnly -bloop.ScalaVersionsSpec" \
57
47
"jsBridge06/test" \
58
- "jsBridge1/test" &&\
59
- ./bin/sbt-ci.sh \
60
- "+test:compile"
48
+ "jsBridge1/test"
61
49
shell : bash
62
- launcher-test :
50
+
51
+ launcher :
52
+ name : Launcher tests
63
53
runs-on : ${{ matrix.os }}
64
54
strategy :
65
55
fail-fast : false
66
56
matrix :
67
57
os : [ubuntu-latest, windows-latest, macOS-latest]
68
58
jdk : ["graalvm-java17:21.3.0"]
69
- name : Launcher tests ${{ matrix.os }} -- ${{ matrix.jdk }}
59
+ steps :
60
+ - uses : actions/checkout@v3
61
+ with :
62
+ submodules : true
63
+ fetch-depth : 0
64
+ -
uses :
coursier/[email protected]
65
+ with :
66
+ jvm : ${{ matrix.jdk }}
67
+ - name : Tests
68
+ run : |
69
+ echo $JAVA_HOME
70
+ which gu && gu install native-image
71
+ ./bin/sbt-ci.sh publishLocal "launcherTest/test"
72
+ shell : bash
73
+
74
+ test :
75
+ runs-on : ${{ matrix.os }}
76
+ strategy :
77
+ fail-fast : false
78
+ matrix :
79
+ os : [ubuntu-latest, windows-latest, macOS-latest]
80
+ jdk : ["graalvm-java17:21.3.0", "temurin:17"]
81
+ name : Test ${{ matrix.os }} -- ${{ matrix.jdk }}
70
82
env :
71
83
HYDRA_LICENSE : ${{ secrets.HYDRA_LICENSE }}
72
84
steps :
@@ -84,19 +96,16 @@ jobs:
84
96
java -version
85
97
[[ $HYDRA_LICENSE == floating-key=* ]] && mkdir -p $HOME/.triplequote && echo "$HYDRA_LICENSE" > "$HOME/.triplequote/hydra.license" || echo "Hydra license file was not created"
86
98
shell : bash
87
- - name : Prepare launcher tests
88
- run : |
89
- echo $JAVA_HOME
90
- which gu && gu install native-image
91
- ./bin/sbt-ci.sh publishLocal
92
- shell : bash
93
- - name : Prepare launcher tests
94
- if : matrix.os != 'windows-latest'
95
- run : |
96
- ./bin/sbt-ci.sh bloopgun/graalvm-native-image:packageBin
97
- - name : Run launcher tests
99
+ - name : Compile and test main projects
98
100
run : |
99
- ./bin/sbt-ci.sh "launcherTest/test"
101
+ .github/setup-test-projects.sh &&\
102
+ ./bin/sbt-ci.sh \
103
+ "frontend/test:compile" \
104
+ "backend/test" \
105
+ "frontend/testOnly bloop.ScalaVersionsSpec" \
106
+ "frontend/testOnly -bloop.ScalaVersionsSpec" &&\
107
+ ./bin/sbt-ci.sh \
108
+ "+test:compile"
100
109
shell : bash
101
110
102
111
publish-binaries :
@@ -164,7 +173,7 @@ jobs:
164
173
165
174
- name : Refresh Pagefile
166
175
run : |
167
- (Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
176
+ (Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize
168
177
- uses : actions/checkout@v3
169
178
with :
170
179
submodules : true
@@ -202,7 +211,6 @@ jobs:
202
211
name : bloop-artifacts
203
212
path : bloop-artifacts/${{ matrix.artifact }}
204
213
205
-
206
214
release :
207
215
name : Release version on ${{ matrix.os }}
208
216
needs :
0 commit comments