mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
ci: scope Rust cache by targets to be built (#4136)
This commit is contained in:
3
.github/actions/setup-rust/action.yml
vendored
3
.github/actions/setup-rust/action.yml
vendored
@@ -9,6 +9,7 @@ inputs:
|
||||
description: "Additional targets to install"
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -37,7 +38,7 @@ runs:
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
save-if: ${{ github.ref_name == 'main' }}
|
||||
key: ${{ runner.os }}-${{ runner.arch }}
|
||||
key: ${{ runner.os }}-${{ inputs.targets }}
|
||||
workspaces: ./rust
|
||||
|
||||
# Common to either cache backend
|
||||
|
||||
Reference in New Issue
Block a user