File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
1012on :
1113 workflow_dispatch :
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
You can’t perform that action at this time.
0 commit comments