Skip to content

Commit

Permalink
Replace unmaintained actions-rs/* actions in CI workflow (#312)
Browse files Browse the repository at this point in the history
Basically all of the `actions-rs/*` actions are unmaintained. See
<actions-rs/toolchain#216> for more
information. Due to their age they generate several warnings in
CI runs.

To get rid of those warnings the occurrences of
`actions-rs/toolchain` are replaced by `dtolnay/rust-toolchain`,
and the occurrences of `actions-rs/cargo` are replaced by direct
invocations of `cargo`.
  • Loading branch information
striezel authored May 23, 2023
1 parent b716e2c commit 16d5c91
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,52 +25,32 @@ jobs:
- uses: actions/checkout@v3
name: Checkout

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
name: Verify Rust Toolchain
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
name: Rust Cache

- uses: actions-rs/cargo@v1
- run: cargo fmt --all -- --check
name: Format Check
with:
command: fmt
args: --all -- --check
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'

- uses: actions-rs/cargo@v1
- run: cargo clippy --all-targets --all-features -- -D warnings
name: Clippy Lint (Stable)
with:
command: clippy
args: --all-targets --all-features -- -D warnings
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable'

- uses: actions-rs/cargo@v1
- run: cargo clippy --all-targets --all-features -- -D warnings -A "clippy::upper_case_acronyms"
name: Clippy Lint (Non-stable)
with:
command: clippy
args: --all-targets --all-features -- -D warnings -A "clippy::upper_case_acronyms"
if: matrix.os == 'ubuntu-latest' && (matrix.rust == 'beta' || matrix.rust == 'nightly')

- uses: actions-rs/cargo@v1
- run: cargo build --verbose --all-features
name: Build
with:
command: build
args: --verbose --all-features

- uses: actions-rs/cargo@v1
- run: cargo test --all-features
name: Unit Tests
with:
command: test
args: --all-features

- uses: actions-rs/cargo@v1
- run: cargo doc --no-deps --all-features
name: Build Documentation
with:
command: doc
args: --no-deps --all-features

0 comments on commit 16d5c91

Please sign in to comment.