Skip to content

Commit

Permalink
ci: Switch from actions-rs and update checkout
Browse files Browse the repository at this point in the history
The actions-rs actions have been unmaintained for a long time.
  • Loading branch information
waywardmonkeys committed Jun 15, 2024
1 parent de2f15a commit 5a93b18
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Copy MSRV Lock
run: make msrv-lock
- name: Build
Expand Down Expand Up @@ -65,12 +63,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: Checkout
uses: actions/checkout@v4
- name: Install linker
Expand Down Expand Up @@ -101,12 +97,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Checkout
uses: actions/checkout@v4
- name: Check
Expand All @@ -122,12 +116,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Checkout
uses: actions/checkout@v4
- name: Install WasmTime
Expand All @@ -147,10 +139,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
- name: Checkout
uses: actions/checkout@v4
- name: Test
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
components: clippy, rustfmt
override: true
- name: Run clippy
run: make lint
4 changes: 1 addition & 3 deletions .github/workflows/minver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
profile: minimal
override: true
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@cargo-minimal-versions
- name: Test
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
components: clippy, rustfmt
override: true
- name: Run rustfmt
run: make format-check

0 comments on commit 5a93b18

Please sign in to comment.