do not bother with recompiling the libraries, if we got a cache hit.

This commit is contained in:
2025-09-15 12:51:48 +02:00
parent 5db42a2b15
commit b13739c782

View File

@@ -32,12 +32,16 @@ jobs:
run: echo "HASH=$(git submodule | sha1sum)" >$GITHUB_OUTPUT run: echo "HASH=$(git submodule | sha1sum)" >$GITHUB_OUTPUT
- uses: actions/cache@v4 - uses: actions/cache@v4
id: cache-deps
with: with:
path: lib/obj/ path: lib/obj/
# I swear to god, if runner.arch displays x64 for x86_64, I will eat a potato. # I swear to god, if runner.arch displays x64 for x86_64, I will eat a potato.
# note: it is... fucking shit. # note: it is... fucking shit.
key: ${{runner.os}}_${{runner.arch}}-lib/obj-${{steps.get-hash.outputs.HASH}} key: ${{runner.os}}_${{runner.arch}}-lib/obj-${{steps.get-hash.outputs.HASH}}
restore-keys: ${{runner.os}}_${{runner.arch}}-lib/obj- restore-keys: ${{runner.os}}_${{runner.arch}}-lib/obj-
- run: make -Bj libs - run: make -Bj libs
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: make -j all - run: make -j all
- run: make -j test - run: make -j test