Skip to content

Commit

Permalink
replace actions-rs/toolchain@v1 with dtolnay/rust-toolchain@stable
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Jan 29, 2023
1 parent c5138aa commit d4bbccb
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always

jobs:
unit-test:
Expand All @@ -8,32 +10,21 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features -- --skip src/lib.rs
if: ${{ matrix.os != 'windows-latest' }}
- run: cargo test --features=search -- --skip src\lib.rs
if: ${{ matrix.os == 'windows-latest' }}
lint:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo clippy --examples --all-features -- -D warnings
Expand Down

0 comments on commit d4bbccb

Please sign in to comment.