Skip to content

Commit

Permalink
Fix Rust version in Github Actions
Browse files Browse the repository at this point in the history
This is to ensure that an update of the Rust language does not cause CI
to fail, due to new lints. The Rust version available for the last
commit on `master` is 1.76.0, therefore CI uses that.

With this change an update of the Rust version does not break things.
  • Loading branch information
justahero committed Dec 4, 2024
1 parent c7003f5 commit 7100579
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ jobs:
- runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.76.0
- run: cargo test -- --skip args::args_tests::update_config_test_color_choice::case_4 --skip test_package

clippy:
name: Check that clippy is happy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.76.0
components: clippy
- run: cargo clippy --workspace --all-features --all-targets --no-deps -- -D warnings

Expand All @@ -43,7 +46,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.76.0
components: rustfmt
- run: cargo fmt --all -- --check

0 comments on commit 7100579

Please sign in to comment.