@@ -178,7 +178,6 @@ jobs:
178
178
env :
179
179
J : " 3"
180
180
run_testsuite : " true"
181
- expected_fail : " ${{matrix.expected_fail == true}}"
182
181
183
182
steps :
184
183
- name : Checkout the Flambda backend repo
@@ -200,12 +199,14 @@ jobs:
200
199
if : matrix.os == 'macos-latest'
201
200
run : HOMEBREW_NO_INSTALL_CLEANUP=TRUE brew install autoconf
202
201
202
+ # NB. The "rev" number in the cache key below must be updated each time
203
+ # the patch file is changed!
203
204
- name : Cache OCaml 4.14, dune and menhir
204
205
uses : actions/cache@v4
205
206
id : cache
206
207
with :
207
208
path : ${{ github.workspace }}/ocaml-414/_install
208
- key : ${{ matrix.os }}-cache-ocaml-414-patched-dune-3152-menhir-20231231
209
+ key : ${{ matrix.os }}-cache-ocaml-414-patched-dune-3152-menhir-20231231-rev13
209
210
210
211
- name : Checkout OCaml 4.14
211
212
uses : actions/checkout@master
@@ -285,14 +286,23 @@ jobs:
285
286
--with-dune=$GITHUB_WORKSPACE/ocaml-414/_install/bin/dune \
286
287
${{ matrix.config }}
287
288
288
- - name : Setup for saving core files (not for macOS at the moment )
289
+ - name : Setup for saving core files (not for macOS)
289
290
if : matrix.os != 'macos-latest'
290
291
run : |
291
292
sudo mkdir /cores
292
293
sudo chmod 777 /cores
293
294
# Core filenames will be of the form executable.pid.timestamp:
294
295
sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
295
296
297
+ - name : Setup for saving core files (macOS)
298
+ if : matrix.os == 'macos-latest'
299
+ run : |
300
+ sudo chmod 1777 /cores
301
+ sudo sysctl kern.coredump=1
302
+ /usr/libexec/PlistBuddy -c "Add :com.apple.security.get-task-allow bool true" /tmp/core.entitlements
303
+ codesign -s - -f --entitlements /tmp/core.entitlements $GITHUB_WORKSPACE/ocaml-414/_install/bin/ocamlc.opt
304
+ codesign -s - -f --entitlements /tmp/core.entitlements $GITHUB_WORKSPACE/ocaml-414/_install/bin/ocamlopt.opt
305
+
296
306
- name : Build, install and test Flambda backend
297
307
working-directory : flambda_backend
298
308
run : |
@@ -313,25 +323,35 @@ jobs:
313
323
run : |
314
324
PATH=$GITHUB_WORKSPACE/ocaml-414/_install/bin:$PATH make check_all_arches
315
325
316
- # CR-soon xclerc for xclerc: re-enable the "upload-artifact" action
317
- # (they are failing @4 because the names are not unique)
318
- # - uses: actions/upload-artifact@v4
319
- # if: ${{ failure() }} && matrix.os != 'macos-latest'
320
- # with:
321
- # name: cores-${{ github.sha }}
322
- # path: /cores
323
- #
324
- # - uses: actions/upload-artifact@v4
325
- # if: ${{ failure() }} && matrix.os != 'macos-latest'
326
- # with:
327
- # name: _build-${{ github.sha }}
328
- # path: $GITHUB_WORKSPACE/_build
326
+ - uses : actions/upload-artifact@v4
327
+ if : ${{ failure() }}
328
+ with :
329
+ name : cores-${{ github.sha }}-${{ github.run_id }}-${{ matrix.name }}
330
+ path : /cores
331
+
332
+ # - uses: actions/upload-artifact@v4
333
+ # if: ${{ failure() }}
334
+ # with:
335
+ # name: ocaml-414-${{ github.sha }}-${{ github.run_id }}-${{ matrix.name }}
336
+ # path: ${{ github.workspace }}/ocaml-414/_install
337
+
338
+ - uses : actions/upload-artifact@v4
339
+ if : ${{ failure() }} && matrix.os == 'macos-latest'
340
+ with :
341
+ name : DiagnosticReports-${{ github.sha }}-${{ github.run_id }}-${{ matrix.name }}
342
+ path : /Users/runner/Library/Logs/DiagnosticReports
343
+
344
+ # - uses: actions/upload-artifact@v4
345
+ # if: ${{ failure() }}
346
+ # with:
347
+ # name: _build-${{ github.sha }}-${{ github.run_id }}-${{ matrix.name }}
348
+ # path: ${{ github.workspace }}/flambda_backend/_build
329
349
#
330
- # - uses: actions/upload-artifact@v4
331
- # if: ${{ failure() }} && matrix.os != 'macos-latest'
332
- # with:
333
- # name: _runtest-${{ github.sha }}
334
- # path: $GITHUB_WORKSPACE /_runtest
350
+ # - uses: actions/upload-artifact@v4
351
+ # if: ${{ failure() }}
352
+ # with:
353
+ # name: _runtest-${{ github.sha }}-${{ github.run_id }}-${{ matrix.name }}
354
+ # path: ${{ github.workspace }}/flambda_backend /_runtest
335
355
336
356
concurrency :
337
357
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
0 commit comments