[ci] Add rust-cache
Lauren Tan committed
Aug 23, 2023 at 17:16 UTC
aeae3ba0a7adee165bac9ed9ba08a15bcb23e1cb
1 file changed
+3
compiler/.github/workflows/rust.yml
+3
@@ -35,6 +35,7 @@ jobs:
35
runs-on: ${{ matrix.target.os }}
36
steps:
37
- uses: actions/checkout@v3
38
+ - uses: Swatinem/rust-cache@v2
39
- name: cargo test
40
run: cargo test --manifest-path=Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }}
41
@@ -50,6 +51,7 @@ jobs:
51
toolchain: nightly-2023-08-01
52
override: true
53
components: rustfmt, clippy
54
+ - uses: Swatinem/rust-cache@v2
55
- name: rustfmt
56
run: grep -r --include "*.rs" --files-without-match "@generated" crates | xargs rustup run nightly-2023-08-01 rustfmt --check --config="skip_children=true"
57
# - name: cargo clippy
@@ -61,6 +63,7 @@ jobs:
63
# TODO: build on more platforms, deploy, etc
64
steps:
65
- uses: actions/checkout@v3
66
+ - uses: Swatinem/rust-cache@v2
67
- name: cargo build
68
run: cargo build --release
69