@@ -220,7 +220,7 @@ jobs:
220220 assert-test-linux :
221221 # Run all tests that can run on Linux, with LLVM assertions enabled to catch
222222 # potential bugs.
223- runs-on : ubuntu-latest
223+ runs-on : ubuntu-24.04
224224 steps :
225225 - name : Checkout
226226 uses : actions/checkout@v6
@@ -239,8 +239,7 @@ jobs:
239239 qemu-system-arm \
240240 qemu-system-riscv32 \
241241 qemu-user \
242- simavr \
243- ninja-build
242+ simavr
244243 - name : Install Go
245244 uses : actions/setup-go@v6
246245 with :
@@ -264,53 +263,7 @@ jobs:
264263 "https://github.com/espressif/qemu/releases/download/$release/$archive"
265264 tar -xJf "$RUNNER_TEMP/$archive" -C "$RUNNER_TEMP"
266265 echo "$RUNNER_TEMP/qemu/bin" >> "$GITHUB_PATH"
267- - name : Restore LLVM source cache
268- uses : actions/cache/restore@v5
269- id : cache-llvm-source
270- with :
271- key : llvm-source-22-linux-asserts-v1-${{ hashFiles('llvm-version.txt') }}
272- path : |
273- llvm-project/clang/lib/Headers
274- llvm-project/clang/include
275- llvm-project/compiler-rt
276- llvm-project/lld/include
277- llvm-project/llvm/include
278- - name : Download LLVM source
279- if : steps.cache-llvm-source.outputs.cache-hit != 'true'
280- run : make llvm-source
281- - name : Save LLVM source cache
282- uses : actions/cache/save@v5
283- if : steps.cache-llvm-source.outputs.cache-hit != 'true'
284- with :
285- key : ${{ steps.cache-llvm-source.outputs.cache-primary-key }}
286- path : |
287- llvm-project/clang/lib/Headers
288- llvm-project/clang/include
289- llvm-project/compiler-rt
290- llvm-project/lld/include
291- llvm-project/llvm/include
292- - name : Restore LLVM build cache
293- uses : actions/cache/restore@v5
294- id : cache-llvm-build
295- with :
296- key : llvm-build-22-linux-asserts-v1-${{ hashFiles('llvm-version.txt') }}
297- path : llvm-build
298- - name : Build LLVM
299- if : steps.cache-llvm-build.outputs.cache-hit != 'true'
300- run : |
301- # fetch LLVM source
302- rm -rf llvm-project
303- make llvm-source
304- # build!
305- make llvm-build ASSERT=1
306- # Remove unnecessary object files (to reduce cache size).
307- find llvm-build -name CMakeFiles -prune -exec rm -r '{}' \;
308- - name : Save LLVM build cache
309- uses : actions/cache/save@v5
310- if : steps.cache-llvm-build.outputs.cache-hit != 'true'
311- with :
312- key : ${{ steps.cache-llvm-build.outputs.cache-primary-key }}
313- path : llvm-build
266+ - uses : ./.github/actions/setup-llvm
314267 - name : Cache Binaryen
315268 uses : actions/cache@v5
316269 id : cache-binaryen
0 commit comments