Skip to content

Commit d4c94cc

Browse files
committed
ci: update checkout version, switch rust caching
1 parent ceae089 commit d4c94cc

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,11 @@ jobs:
1919
RUST_BACKTRACE: 1
2020

2121
steps:
22-
- uses: actions/checkout@v2
23-
- uses: dtolnay/[email protected]
24-
with:
25-
components: rustfmt
22+
- uses: actions/checkout@v4
23+
#- run: rustup toolchain install stable --profile minimal
24+
- uses: Swatinem/rust-cache@v2
2625
- name: Check formatting
2726
run: cargo fmt -- --check
28-
- name: Cargo cache
29-
uses: actions/cache@v2
30-
with:
31-
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
32-
path: ~/.cargo/registry
3327
- name: Build
3428
run: cargo build --verbose -F crlf
3529
- name: Run tests

0 commit comments

Comments
 (0)