Skip to content

Commit

Permalink
Replace unmaintained GitHub Actions (hyperium#131)
Browse files Browse the repository at this point in the history
The toolchain is now installed with `dtolnay/rust-toolchain` and
`actions-rs/cargo` is replaced with plain commands.
  • Loading branch information
nickelc authored Feb 8, 2023
1 parent f9d55a6 commit e3841d6
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Check
run: cargo check --all --all-features --all-targets
Expand All @@ -40,13 +36,16 @@ jobs:
RUSTFLAGS: "-D warnings"

steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
- uses: actions/checkout@v3
- name: Test
run: cargo test --all
- name: Checkout sources
uses: actions/checkout@v3

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- name: Test
run: cargo test --all

lints:
name: Lints
Expand All @@ -56,21 +55,13 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
if: always()
run: cargo clippy --all-features -- -D warnings

0 comments on commit e3841d6

Please sign in to comment.