Skip to content

Commit 9b57739

Browse files
CI: Add GitHub Actions workflows for release management and Rust setup
1 parent 5126676 commit 9b57739

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 }}

0 commit comments

Comments
 (0)