Skip to content

Commit

Permalink
ci: switch to dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
cijiugechu committed Oct 22, 2023
1 parent 993c83e commit 8761ce0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: default
toolchain: stable
components: rustfmt, clippy, rust-docs
- uses: Swatinem/rust-cache@v2
- name: clippy
run: cargo clippy --all -- -D warnings
Expand All @@ -29,17 +28,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [1.73.0]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy, rust-docs
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all --verbose

0 comments on commit 8761ce0

Please sign in to comment.