@@ -15,11 +15,10 @@ concurrency:
15
15
group : ${{ github.workflow }}-${{ github.ref }}-engine-checks-optional
16
16
cancel-in-progress : ${{ github.ref != 'refs/heads/develop' }}
17
17
jobs :
18
- enso-build-ci-gen-job-ci-check-backend -graal-vm-ce-macos-amd64 :
19
- name : Engine (GraalVM CE) (macos, amd64)
18
+ enso-build-ci-gen-job-build-engine-distribution -graal-vm-ce-macos-amd64 :
19
+ name : Build Engine Distribution (GraalVM CE) (native,test ) (macos, amd64)
20
20
runs-on :
21
21
- macos-13
22
- continue-on-error : true
23
22
steps :
24
23
- if : runner.os == 'Windows'
25
24
name : Setup required bazel environment
@@ -54,18 +53,30 @@ jobs:
54
53
run : ./run git-clean
55
54
env :
56
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
- - run : ./run backend ci-check
56
+ - run : ./run backend ci-build-engine-distribution
58
57
env :
59
58
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
+ - name : Archive Engine Distribution
60
+ run : tar -cvf built-distribution.tar built-distribution test
61
+ - name : Upload Engine Distribution
62
+ uses : actions/upload-artifact@v4
63
+ with :
64
+ name : Engine Distribution (GraalVM CE) (native,test) (macos, amd64)
65
+ path : built-distribution.tar
66
+ - name : Cleanup Archive
67
+ run : rm built-distribution.tar
60
68
- if : " (always()) && (contains(github.event.pull_request.labels.*.name, 'CI: Clean build required') || (github.ref == 'refs/heads/develop') || inputs.clean_build_required)"
61
69
name : Clean after
62
70
run : ./run git-clean
63
71
env :
64
72
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65
73
env :
74
+ ENSO_LAUNCHER : native,test
66
75
GRAAL_EDITION : GraalVM CE
67
76
enso-build-ci-gen-job-jvm-tests-graal-vm-ce-macos-amd64 :
68
77
name : JVM Tests (GraalVM CE) (macos, amd64)
78
+ needs :
79
+ - enso-build-ci-gen-job-build-engine-distribution-graal-vm-ce-macos-amd64
69
80
runs-on :
70
81
- macos-13
71
82
continue-on-error : true
@@ -103,6 +114,16 @@ jobs:
103
114
run : ./run git-clean
104
115
env :
105
116
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117
+ - run : rm -rf built-distribution test
118
+ shell : bash
119
+ - name : Download Engine Distribution
120
+ uses : actions/download-artifact@v4
121
+ with :
122
+ name : Engine Distribution (GraalVM CE) (native,test) (macos, amd64)
123
+ - name : Unpack Engine Distribution
124
+ run : |
125
+ tar -xvf built-distribution.tar
126
+ rm built-distribution.tar
106
127
- run : ./run backend test jvm
107
128
env :
108
129
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -124,8 +145,10 @@ jobs:
124
145
GRAAL_EDITION : GraalVM CE
125
146
permissions :
126
147
checks : write
127
- enso-build-ci-gen-job-standard-library-tests-graal-vm-ce-macos-amd64 :
128
- name : Standard Library Tests (GraalVM CE) (macos, amd64)
148
+ enso-build-ci-gen-job-standard-library-tests-graal-vm-ce-jvm-macos-amd64 :
149
+ name : Standard Library Tests (GraalVM CE) (jvm) (macos, amd64)
150
+ needs :
151
+ - enso-build-ci-gen-job-build-engine-distribution-graal-vm-ce-macos-amd64
129
152
runs-on :
130
153
- macos-13
131
154
continue-on-error : true
@@ -163,6 +186,16 @@ jobs:
163
186
run : ./run git-clean
164
187
env :
165
188
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
189
+ - run : rm -rf built-distribution test
190
+ shell : bash
191
+ - name : Download Engine Distribution
192
+ uses : actions/download-artifact@v4
193
+ with :
194
+ name : Engine Distribution (GraalVM CE) (native,test) (macos, amd64)
195
+ - name : Unpack Engine Distribution
196
+ run : |
197
+ tar -xvf built-distribution.tar
198
+ rm built-distribution.tar
166
199
- run : ./run backend test standard-library
167
200
env :
168
201
ENSO_LIB_S3_AWS_ACCESS_KEY_ID : ${{ secrets.ENSO_LIB_S3_AWS_ACCESS_KEY_ID }}
@@ -187,5 +220,80 @@ jobs:
187
220
GRAAL_EDITION : GraalVM CE
188
221
permissions :
189
222
checks : write
223
+ enso-build-ci-gen-job-standard-library-tests-graal-vm-ce-native-macos-amd64 :
224
+ name : Standard Library Tests (GraalVM CE) (native) (macos, amd64)
225
+ needs :
226
+ - enso-build-ci-gen-job-build-engine-distribution-graal-vm-ce-macos-amd64
227
+ runs-on :
228
+ - macos-13
229
+ continue-on-error : true
230
+ steps :
231
+ - if : runner.os == 'Windows'
232
+ name : Setup required bazel environment
233
+ run : " \n\" BAZEL_SH=C:\\ Program Files\\ Git\\ bin\\ bash.exe\" >> $env:GITHUB_ENV\n\" BAZEL_VC=C:\\ BuildTools\\ VC\" >> $env:GITHUB_ENV\n "
234
+ shell : pwsh
235
+ - name : Setup bazel environment
236
+ uses : bazel-contrib/setup-bazel@0.13.0
237
+ with :
238
+ bazelrc : build --remote_cache=grpcs://${{ vars.ENSO_BAZEL_CACHE_URI }} --remote_cache_header="authorization=Basic ${{ secrets.ENSO_BAZEL_CACHE_TOKEN }}"
239
+ output-base : ${{ runner.os == 'Windows' && 'c:/_bazel' || '' }}
240
+ - name : Expose Artifact API and context information.
241
+ uses : actions/github-script@v7
242
+ with :
243
+ script : " \n core.exportVariable(\" ACTIONS_RUNTIME_TOKEN\" , process.env[\" ACTIONS_RUNTIME_TOKEN\" ])\n core.exportVariable(\" ACTIONS_RUNTIME_URL\" , process.env[\" ACTIONS_RUNTIME_URL\" ])\n core.exportVariable(\" GITHUB_RETENTION_DAYS\" , process.env[\" GITHUB_RETENTION_DAYS\" ])\n console.log(context)\n "
244
+ - name : Checking out the repository
245
+ uses : actions/checkout@v4
246
+ with :
247
+ clean : false
248
+ - if : runner.os == 'macOS'
249
+ name : Setup nodejs version
250
+ uses : actions/setup-node@v4
251
+ with :
252
+ node-version-file : .node-version
253
+ - if : runner.os != 'Linux'
254
+ run : npm install -g corepack@0.31.0 && corepack --version
255
+ - name : Build Script Setup
256
+ run : ./run --help || (git clean -ffdx && ./run --help)
257
+ env :
258
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
259
+ - if : " (contains(github.event.pull_request.labels.*.name, 'CI: Clean build required') || (github.ref == 'refs/heads/develop') || inputs.clean_build_required)"
260
+ name : Clean before
261
+ run : ./run git-clean
262
+ env :
263
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
264
+ - run : rm -rf built-distribution test
265
+ shell : bash
266
+ - name : Download Engine Distribution
267
+ uses : actions/download-artifact@v4
268
+ with :
269
+ name : Engine Distribution (GraalVM CE) (native,test) (macos, amd64)
270
+ - name : Unpack Engine Distribution
271
+ run : |
272
+ tar -xvf built-distribution.tar
273
+ rm built-distribution.tar
274
+ - run : ./run backend test standard-library-in-native
275
+ env :
276
+ ENSO_LIB_S3_AWS_ACCESS_KEY_ID : ${{ secrets.ENSO_LIB_S3_AWS_ACCESS_KEY_ID }}
277
+ ENSO_LIB_S3_AWS_REGION : ${{ secrets.ENSO_LIB_S3_AWS_REGION }}
278
+ ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY : ${{ secrets.ENSO_LIB_S3_AWS_SECRET_ACCESS_KEY }}
279
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
280
+ - if : (success() || failure()) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
281
+ name : Standard Library Test Reporter
282
+ uses : dorny/test-reporter@v1
283
+ with :
284
+ max-annotations : 50
285
+ name : Standard Library Tests Report (GraalVM CE, macos, amd64)
286
+ path : ${{ env.ENSO_TEST_JUNIT_DIR }}/*/*.xml
287
+ path-replace-backslashes : true
288
+ reporter : java-junit
289
+ - if : " (always()) && (contains(github.event.pull_request.labels.*.name, 'CI: Clean build required') || (github.ref == 'refs/heads/develop') || inputs.clean_build_required)"
290
+ name : Clean after
291
+ run : ./run git-clean
292
+ env :
293
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
294
+ env :
295
+ GRAAL_EDITION : GraalVM CE
296
+ permissions :
297
+ checks : write
190
298
env :
191
299
ENSO_BUILD_SKIP_VERSION_CHECK : " true"
0 commit comments