File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 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}}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments