-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
27 lines (26 loc) · 804 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: 'Setup Rust'
description: 'A composite action to setup Rust project.'
runs:
using: "composite"
steps:
- name: Install Rust toolchain
shell: bash
run: |
rustup set profile minimal
rustup toolchain update stable --no-self-update
rustup default stable
rustup component add rustfmt clippy
rustup show
rustc --version --verbose
cargo --version --verbose
cargo fmt --version
cargo clippy --version
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}