File tree Expand file tree Collapse file tree
.github/actions/setup-rust Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : setup-rust
2+ description : Setup Rust toolchain and Cargo cache for NodeGet
3+ inputs :
4+ components :
5+ description : Rust components to install
6+ required : false
7+ default : " "
8+ targets :
9+ description : Rust targets to install
10+ required : false
11+ default : " "
12+ cache-shared-key :
13+ description : Shared cache key for Swatinem/rust-cache
14+ required : false
15+ default : " "
16+ cache-targets :
17+ description : Whether to cache target directories
18+ required : false
19+ default : " true"
20+ cache-on-failure :
21+ description : Whether to save cache when a job fails
22+ required : false
23+ default : " true"
24+ runs :
25+ using : composite
26+ steps :
27+ - name : Setup Rust toolchain
28+ uses : dtolnay/rust-toolchain@stable
29+ with :
30+ components : ${{ inputs.components }}
31+ targets : ${{ inputs.targets }}
32+
33+ - name : Restore Cargo cache
34+ uses : Swatinem/rust-cache@v2
35+ with :
36+ shared-key : ${{ inputs.cache-shared-key }}
37+ cache-targets : ${{ inputs.cache-targets }}
38+ cache-on-failure : ${{ inputs.cache-on-failure }}
You can’t perform that action at this time.
0 commit comments