Skip to content

Commit

Permalink
ci: change install rust toolchain action
Browse files Browse the repository at this point in the history
  • Loading branch information
lowitea committed Mar 3, 2025
1 parent 114b3da commit 4bf0431
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: "1.85"
components: clippy, rustfmt
- run: cargo publish --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: "1.85"
components: clippy
override: true
components: clippy, rustfmt
- name: Checking code format
run: cargo fmt -- --check --config use_try_shorthand=true
- name: Clippy
Expand All @@ -63,10 +61,10 @@ jobs:
- name: Install system dependencies
run: dnf install -y gcc git make
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: "1.85"
override: true
components: clippy, rustfmt
- name: Run tests
run: make tests
env:
Expand Down

0 comments on commit 4bf0431

Please sign in to comment.