build: Use hacks for a cached actions build
- Use cache dance for github actions caching - Use timelord hack to avoid bad cache invalidation
This commit is contained in:
parent
6b92e96582
commit
cacaa6c512
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ jobs:
|
|||
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||
with:
|
||||
prefix-key: v0-rust-linux/${{ matrix.slug }}
|
||||
prefix-key: v0-rust-linux/${{ matrix.platform.slug }}
|
||||
id: rust-cache
|
||||
- name: Inject cache into Docker
|
||||
uses: https://github.com/reproducible-containers/buildkit-cache-dance@v3.1.2
|
||||
|
@ -123,7 +123,7 @@ jobs:
|
|||
uses: actions/cache@v4
|
||||
with:
|
||||
path: "./timelord"
|
||||
key: ${{ runner.os }}-${{ matrix.slug }}
|
||||
key: ${{ runner.os }}-${{ matrix.platform.slug }}
|
||||
- name: Build and push Docker image by digest
|
||||
id: build
|
||||
uses: docker/build-push-action@v6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue