File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,17 @@ jobs:
2424 ~/.cargo/git/db/
2525 target/
2626 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
27+
28+ - name : Retrieve Rust version
29+ id : rust-version
30+ run : echo "rust-version=$(grep '^rust ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
31+ shell : bash
2732
2833 - name : Set up rust toolchain
2934 uses : actions-rust-lang/setup-rust-toolchain@v1
3035 with :
3136 components : " clippy, rustfmt"
32- toolchain : 1.83
37+ toolchain : ${{ steps.rust-version.outputs.rust-version }}
3338
3439 - name : Add wasm32-wasi target
3540 run : rustup target add wasm32-wasip1
Original file line number Diff line number Diff line change @@ -24,10 +24,15 @@ jobs:
2424 target/
2525 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2626
27+ - name : Retrieve Rust version
28+ id : rust-version
29+ run : echo "rust-version=$(grep '^rust ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
30+ shell : bash
31+
2732 - name : Set up Rust tool chain
2833 uses : actions-rust-lang/setup-rust-toolchain@v1
2934 with :
30- toolchain : 1.83
35+ toolchain : ${{ steps.rust-version.outputs.rust-version }}
3136
3237 - name : Add wasm32-wasi target
3338 run : rustup target add wasm32-wasip1
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929## [ 1.0.6] - Scheduled
3030
3131### Changed
32- - Remove hard coded Fast ID in fastly.tom
33- - Updated README to better describe what Trusted Server does and high-level goal
34-
32+ - Remove hard coded Fast ID in fastly.tom
33+ - Updated README to better describe what Trusted Server does and high-level goal
34+ - Use Rust toolchain version from .tool-versions for GitHub actions
3535
3636## [ 1.0.5] - 2025-05-19
3737
You can’t perform that action at this time.
0 commit comments