Skip to content

Commit b0fdf5d

Browse files
committed
JIT: Add jit_target_arch to cache key as jit beams differ
cmake `-DAVM_DISABLE_JIT=OFF` and autodetected JIT target impact what is compiled in some tests with `-DAVM_DISABLE_JIT` or `"-DAVM_JIT_TARGET_ARCH='${AVM_JIT_TARGET_ARCH}'"` passed to `erlc`. Signed-off-by: Paul Guyot <[email protected]>
1 parent 01cccfc commit b0fdf5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ jobs:
299299
elixir_version: "1.17"
300300
rebar3_version: "3.24.0"
301301
cmake_opts_other: "-DAVM_DISABLE_JIT=OFF"
302+
jit_target_arch: "x86_64"
302303

303304
env:
304305
ImageOS: ${{ matrix.container == 'ubuntu:20.04' && 'ubuntu20' || matrix.os == 'ubuntu-20.04' && 'ubuntu20' || matrix.os == 'ubuntu-22.04' && 'ubuntu22' || matrix.os == 'ubuntu-24.04' && 'ubuntu24' || 'ubuntu24' }}
@@ -366,7 +367,7 @@ jobs:
366367
id: cache
367368
with:
368369
path: 'build/tests/**/*.beam'
369-
key: ${{ matrix.otp }}-${{ hashFiles('**/build-and-test.yaml', 'tests/**/*.erl') }}
370+
key: ${{ matrix.otp }}-${{ hashFiles('**/build-and-test.yaml', 'tests/**/*.erl') }}-${{ matrix.jit_target_arch }}
370371

371372
- name: "Build: run cmake"
372373
working-directory: build

0 commit comments

Comments
 (0)