Skip to content

Commit

Permalink
ci: Replace actions-rs/toolchain and cargo actions.
Browse files Browse the repository at this point in the history
The `actions-rs` actions haven't been updated in a long time and
result in warnings about deprecations within the GitHub UI.
  • Loading branch information
waywardmonkeys authored and saschagrunert committed Jul 24, 2023
1 parent 87e0e74 commit 963ae66
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- run: cargo generate-lockfile
- uses: actions/cache@v2
with:
Expand All @@ -30,10 +26,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt
- run: cargo generate-lockfile
- uses: actions/cache@v2
Expand All @@ -49,10 +43,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: clippy
- run: cargo generate-lockfile
- uses: actions/cache@v2
Expand All @@ -68,10 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- run: cargo generate-lockfile
- uses: actions/cache@v2
with:
Expand All @@ -86,18 +75,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true
- name: Install rustfmt
shell: bash
run: rustup component add rustfmt
components: rustfmt
- name: Unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --no-fail-fast
run: cargo test --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
Expand All @@ -113,10 +95,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- run: cargo generate-lockfile
- uses: actions/cache@v2
with:
Expand Down

0 comments on commit 963ae66

Please sign in to comment.