31
31
os : [ubuntu-latest]
32
32
scala : [2.12.16, 3.1.3, 2.13.8]
33
33
java : [temurin@8, temurin@11]
34
- project : [rootJS, rootJVM]
34
+ project : [rootJS, rootJVM, rootNative ]
35
35
sjsStage : [FastOptStage, FullOptStage]
36
36
exclude :
37
37
- scala : 2.12.16
40
40
java : temurin@11
41
41
- project : rootJS
42
42
java : temurin@11
43
+ - project : rootNative
44
+ java : temurin@11
43
45
- project : rootJVM
44
46
sjsStage : FullOptStage
47
+ - project : rootNative
48
+ sjsStage : FullOptStage
45
49
runs-on : ${{ matrix.os }}
46
50
steps :
47
51
- name : Checkout current branch (full)
@@ -104,6 +108,10 @@ jobs:
104
108
if : matrix.project == 'rootJS'
105
109
run : ' sbt '' project ${{ matrix.project }}'' '' ++${{ matrix.scala }}'' '' set Global/scalaJSStage := ${{ matrix.sjsStage }}'' Test/scalaJSLinkerResult'
106
110
111
+ - name : nativeLink
112
+ if : matrix.project == 'rootNative'
113
+ run : ' sbt '' project ${{ matrix.project }}'' '' ++${{ matrix.scala }}'' '' set Global/scalaJSStage := ${{ matrix.sjsStage }}'' Test/nativeLink'
114
+
107
115
- name : Test
108
116
run : ' sbt '' project ${{ matrix.project }}'' '' ++${{ matrix.scala }}'' '' set Global/scalaJSStage := ${{ matrix.sjsStage }}'' test'
109
117
@@ -125,11 +133,11 @@ jobs:
125
133
126
134
- name : Make target directories
127
135
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
128
- run : mkdir -p target .js/target hpack/jvm/target .jvm/target .native/target hpack/js/target project/target
136
+ run : mkdir -p target .js/target hpack/jvm/target hpack/native/target .jvm/target .native/target hpack/js/target project/target
129
137
130
138
- name : Compress target directories
131
139
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
132
- run : tar cf targets.tar target .js/target hpack/jvm/target .jvm/target .native/target hpack/js/target project/target
140
+ run : tar cf targets.tar target .js/target hpack/jvm/target hpack/native/target .jvm/target .native/target hpack/js/target project/target
133
141
134
142
- name : Upload target directories
135
143
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
@@ -218,6 +226,16 @@ jobs:
218
226
tar xf targets.tar
219
227
rm targets.tar
220
228
229
+ - name : Download target directories (2.12.16, rootNative, FastOptStage)
230
+ uses : actions/download-artifact@v2
231
+ with :
232
+ name : target-${{ matrix.os }}-${{ matrix.java }}-2.12.16-rootNative-FastOptStage
233
+
234
+ - name : Inflate target directories (2.12.16, rootNative, FastOptStage)
235
+ run : |
236
+ tar xf targets.tar
237
+ rm targets.tar
238
+
221
239
- name : Download target directories (3.1.3, rootJS, FastOptStage)
222
240
uses : actions/download-artifact@v2
223
241
with :
@@ -238,6 +256,16 @@ jobs:
238
256
tar xf targets.tar
239
257
rm targets.tar
240
258
259
+ - name : Download target directories (3.1.3, rootNative, FastOptStage)
260
+ uses : actions/download-artifact@v2
261
+ with :
262
+ name : target-${{ matrix.os }}-${{ matrix.java }}-3.1.3-rootNative-FastOptStage
263
+
264
+ - name : Inflate target directories (3.1.3, rootNative, FastOptStage)
265
+ run : |
266
+ tar xf targets.tar
267
+ rm targets.tar
268
+
241
269
- name : Download target directories (2.13.8, rootJS, FastOptStage)
242
270
uses : actions/download-artifact@v2
243
271
with :
@@ -258,6 +286,16 @@ jobs:
258
286
tar xf targets.tar
259
287
rm targets.tar
260
288
289
+ - name : Download target directories (2.13.8, rootNative, FastOptStage)
290
+ uses : actions/download-artifact@v2
291
+ with :
292
+ name : target-${{ matrix.os }}-${{ matrix.java }}-2.13.8-rootNative-FastOptStage
293
+
294
+ - name : Inflate target directories (2.13.8, rootNative, FastOptStage)
295
+ run : |
296
+ tar xf targets.tar
297
+ rm targets.tar
298
+
261
299
- name : Import signing key
262
300
if : env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
263
301
run : echo $PGP_SECRET | base64 -di | gpg --import
0 commit comments