aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/rust.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index b4ba2bb..6e4ed4e 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -21,10 +21,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- - uses: ./.github/actions/setup
+ - uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- key: test-${{ matrix.os }}-${{ matrix.rust }}
+ - uses: Swatinem/rust-cache@v2
- run: cargo build --all-targets
- run: cargo test
@@ -39,10 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- - uses: ./.github/actions/setup
- with:
- key: ${{ matrix.package }}
- components: clippy
+ - uses: Swatinem/rust-cache@v2
- run: cd ${{ matrix.package }} && cargo test --all-targets
- run: cd ${{ matrix.package }} && cargo clippy --all-targets -- -D warnings
@@ -50,9 +47,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- - uses: ./.github/actions/setup
+ - uses: dtolnay/rust-toolchain@stable
with:
- key: lint
components: rustfmt, clippy
+ - uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets -- -D warnings