Skip to content

Commit

Permalink
CI: Fix nightly toolchain
Browse files Browse the repository at this point in the history
Because the nightly stdsimd feature was removed, a bunch
of stuff broke. Fix the nightly version for now, so that it works again.
  • Loading branch information
robinhundt committed Feb 6, 2024
1 parent c641a53 commit 5443b18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ jobs:
with:
submodules: recursive
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
components: "clippy, rustfmt"
toolchain: nightly-2024-01-12
- name: Override default toolchain
run: rustup override set ${{steps.toolchain.outputs.name}}
- run: cargo --version
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Run tests
Expand All @@ -51,15 +52,17 @@ jobs:
with:
submodules: recursive
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: nightly-2024-01-12
components: "clippy, rustfmt"
- name: Override default toolchain
run: rustup override set ${{steps.toolchain.outputs.name}}
- run: cargo --version
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
- name: Check Clippy
run: cargo +nightly clippy --workspace --all-features --examples --tests -- -D warnings
run: cargo clippy --workspace --all-features --examples --tests -- -D warnings
5 changes: 4 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
with:
submodules: recursive
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: nightly-2024-01-12
- name: Override default toolchain
run: rustup override set ${{steps.toolchain.outputs.name}}
- run: cargo --version
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Test
Expand Down

0 comments on commit 5443b18

Please sign in to comment.