Skip to content

Commit 8912bfc

Browse files
authored
pin cargo version (#25)
1 parent 7336f8b commit 8912bfc

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
uses: Swatinem/rust-cache@v2
4444

4545
- name: Run Cargo test
46-
run: cargo test --all-features
46+
run: cargo +${{ env.RUST_TOOLCHAIN }} test --all-features

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ env:
66
# before it is used as a dependency in another crate.
77
# It also helps prevent rate limiting on the registry.
88
PUBLISH_GRACE_SLEEP: 15
9+
RUSTFLAGS: "-Dwarnings"
10+
RUST_TOOLCHAIN: "nightly-2024-11-22"
911

1012
on:
1113
workflow_dispatch:
@@ -65,6 +67,11 @@ jobs:
6567
- name: Cache Dependencies
6668
uses: Swatinem/rust-cache@v2
6769

70+
- name: Install Rust Toolchain and Components
71+
uses: dtolnay/rust-toolchain@master
72+
with:
73+
toolchain: ${{ env.RUST_TOOLCHAIN }}
74+
6875
- name: Install Cargo Release
6976
run: which cargo-release || cargo install cargo-release
7077

@@ -111,4 +118,4 @@ jobs:
111118
;;
112119
esac
113120
114-
cargo release $LEVEL $OPTIONS
121+
cargo +${{ env.RUST_TOOLCHAIN }} release $LEVEL $OPTIONS

0 commit comments

Comments
 (0)