Skip to content

Commit 400f363

Browse files
authored
Merge pull request #241 from cipherstash/fix/do-not-use-caches-when-building-release-artifacts
fix: don't use caches when building release artifacts
2 parents ecabb6d + 7faf18b commit 400f363

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/release-aws-marketplace.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
version: 2 # default
6868
verbose: false # default
6969
arch: arm64 # allowed values: amd64, arm64
70-
70+
7171
- name: Configure AWS credentials
7272
uses: aws-actions/configure-aws-credentials@v4
7373
with:
@@ -82,17 +82,11 @@ jobs:
8282

8383
- uses: actions/checkout@v4
8484

85-
- name: Setup Rust cache
86-
uses: Swatinem/rust-cache@v2
87-
with:
88-
cache-provider: ${{matrix.build.cache-provider}}
89-
cache-all-crates: true
90-
9185
- uses: jdx/mise-action@v2
9286
with:
9387
version: 2025.1.6 # [default: latest] mise version to install
9488
install: true # [default: true] run `mise install`
95-
cache: true # [default: true] cache mise using GitHub's cache
89+
cache: false # do not cache release builds
9690

9791
- run: |
9892
mise run build --platform ${{matrix.build.arch}}

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- name: Setup Rust cache
2727
uses: Swatinem/rust-cache@v2
28+
if: github.event_name == 'pull_request' # only cache in pull requests
2829
with:
2930
cache-provider: ${{matrix.build.cache-provider}}
3031
cache-all-crates: true
3132
- uses: jdx/mise-action@v2
3233
with:
3334
version: 2025.1.6 # [default: latest] mise version to install
3435
install: true # [default: true] run `mise install`
35-
cache: true # [default: true] cache mise using GitHub's cache
36+
cache: ${{ github.event_name != 'pull_request' }} # cache mise using GitHub's cache if running in a PR
3637
- run: |
3738
mise run build --platform ${{matrix.build.docker_platform}} --target ${{matrix.build.rust_target}}
3839

0 commit comments

Comments
 (0)