Skip to content

Commit

Permalink
Run clippy in CI
Browse files Browse the repository at this point in the history
Install Rust stable *after* nightly so that the default is stable.
  • Loading branch information
tamird committed Oct 10, 2024
1 parent 7b74302 commit 20bc42d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install latest stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Install latest nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rust-src

- name: Install latest stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy

- uses: Swatinem/rust-cache@v2

- name: Install deps
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ cargo generate --path "${TEMPLATE_DIR}" -n test -d program_type="${PROG_TYPE}" $
pushd test
cargo xtask build
cargo xtask build --release
cargo clippy --workspace --all-targets
popd
exit 0

0 comments on commit 20bc42d

Please sign in to comment.