Skip to content

Commit

Permalink
Remove redundant toolchain info from GH workflow
Browse files Browse the repository at this point in the history
Unfortunately, [actions-rs/toolchain doesn’t support TOML-formatted
rust-toolchain files](actions-rs/toolchain#126), so this calls
`rustup show` directly where possible.
  • Loading branch information
sellout committed Dec 6, 2024
1 parent fffaec6 commit 62a3d09
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,11 @@ jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup show
- uses: actions-rs/cargo@v1
with:
command: check
Expand Down Expand Up @@ -111,18 +104,11 @@ jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup show
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
Expand All @@ -132,18 +118,11 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup show
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 62a3d09

Please sign in to comment.