Skip to content

Commit

Permalink
add toolchain file to freeze rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Feb 22, 2025
1 parent 80bfc05 commit 2241552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: install
run: |
rustup override set stable
rustup update stable

- name: install `just`
run: sudo snap install --edge --classic just
Expand Down Expand Up @@ -74,10 +70,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: install
run: |
rustup override set stable
rustup update stable

- name: restore build & cargo cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -114,10 +106,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: install
run: |
rustup override set stable
rustup update stable

- name: restore build & cargo cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -147,10 +135,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- id: install
run: |
rustup override set stable
rustup update stable
rustup component add rustfmt
run: rustup component add rustfmt

- run: cargo fmt -- --check

Expand All @@ -161,10 +146,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- id: install
run: |
rustup override set stable
rustup update stable
rustup component add clippy
run: rustup component add clippy

- name: install `just`
run: sudo snap install --edge --classic just
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.85.0"

0 comments on commit 2241552

Please sign in to comment.