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
7185d71827
commit
406f689301
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ jobs:
|
||||||
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
||||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: v0-rust-linux/${{ matrix.slug }}
|
prefix-key: v0-rust-linux/${{ matrix.platform.slug }}
|
||||||
id: rust-cache
|
id: rust-cache
|
||||||
- name: Inject cache into Docker
|
- name: Inject cache into Docker
|
||||||
uses: https://github.com/reproducible-containers/buildkit-cache-dance@v3.1.2
|
uses: https://github.com/reproducible-containers/buildkit-cache-dance@v3.1.2
|
||||||
|
@ -123,7 +123,7 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: "./timelord"
|
path: "./timelord"
|
||||||
key: ${{ runner.os }}-${{ matrix.slug }}
|
key: ${{ runner.os }}-${{ matrix.platform.slug }}
|
||||||
- name: Build and push Docker image by digest
|
- name: Build and push Docker image by digest
|
||||||
id: build
|
id: build
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue