aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/linting.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/linting.yml')
-rw-r--r--.github/workflows/linting.yml28
1 files changed, 26 insertions, 2 deletions
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index 685b93a..470a576 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -7,6 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+ - run: rm rust-toolchain.toml
- uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --all-features
@@ -16,9 +24,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+ - run: rm rust-toolchain.toml
- uses: dtolnay/rust-toolchain@stable
with:
- toolchain: nightly
+ toolchain: nightly-2023-06-19
components: clippy, rust-src
- run: cargo clippy --all-features -- --deny warnings
code-format:
@@ -26,8 +42,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+ - run: rm rust-toolchain.toml
- uses: dtolnay/rust-toolchain@stable
with:
- toolchain: nightly
+ toolchain: nightly-2023-06-19
components: rustfmt, rust-src
- run: cargo fmt -- --check