Skip to content

Commit

Permalink
migrate actions-rs/toolchain to dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
DCjanus committed Aug 19, 2023
1 parent fe32414 commit 4e58d28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
profile: minimal
override: true
components: clippy, rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings

test:
runs-on: ubuntu-latest
Expand All @@ -34,12 +26,7 @@ jobs:
toolchain: [ stable, beta, nightly ]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
- run: cargo test --workspace
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 4e58d28

Please # to comment.