Skip to content

Commit

Permalink
ci: replace actions-rs with dtolnay/rust-toolchain (pluto#130)
Browse files Browse the repository at this point in the history
actions-rs is archived, plus dtolnay/rust-toolchain has some saner defaults and nicer ergonomics
  • Loading branch information
eightfilms authored Jul 8, 2024
1 parent 6e6a230 commit 18bc1ad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
toolchain: nightly-2024-06-10
components: rustfmt

- name: cargo fmt
run: cargo +nightly fmt --all -- --check
run: cargo fmt --all -- --check

clippy:
name: clippy
Expand All @@ -30,12 +30,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install rust toolchain
run: rustup toolchain install nightly-2024-06-10
- name: Install Rust
uses: dtolnay/rust-toolchain
with:
toolchain: nightly-2024-06-10
components: clippy

- name: Install Clippy
run: rustup component add --toolchain nightly-2024-06-10 clippy

- name: cargo clippy
run: cargo clippy --all

Expand All @@ -45,11 +45,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install rust toolchain
run: rustup toolchain install nightly-2024-06-10
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-10

- name: install udeps
run: cargo install --git https://github.com/est31/cargo-udeps --locked

- name: cargo udeps
run: cargo udeps
run: cargo udeps
2 changes: 1 addition & 1 deletion .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust toolchain
run: rustup toolchain install nightly-2024-06-10
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-10

- name: Run tests
run: cargo test --all
run: cargo test --all

0 comments on commit 18bc1ad

Please sign in to comment.