Skip to content

Commit

Permalink
ci: try out actions-rust-lang/setup-rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy committed Jun 13, 2024
1 parent a38a120 commit 15bcec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4
with:
path: |
Expand All @@ -23,15 +21,8 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}-test

- run: cargo install clippy-sarif sarif-fmt

- name: clippy
run: cargo clippy --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true # otherwise the results aren't uploaded

- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: rust-clippy-results.sarif
run: cargo clippy

- name: rustfmt check
run: cargo fmt --all --check
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4
with:
path: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4
with:
path: |
Expand Down

0 comments on commit 15bcec0

Please sign in to comment.