mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 03:25:45 +01:00
do not bother with recompiling the libraries, if we got a cache hit.
This commit is contained in:
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user