File tree Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Expand file tree Collapse file tree 2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ## [ 1.2.1] - 2022-07-29
11+
12+ ### Fixed
13+
14+ * Set environment variables before invoking the cache action.
15+ This ensures restoring and saving are using the same cache key.
16+
1017## [ 1.2.0] - 2022-07-21
1118
1219### Added
Original file line number Diff line number Diff line change 5050 targets : ${{inputs.target}}
5151 components : ${{inputs.components}}
5252 shell : bash
53+ # The environment variables always need to be set before the caching action
54+ - name : " Setting Environment Variables"
55+ run : |
56+ echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
57+ echo "CARGO_PROFILE_DEV_DEBUG=0" >> $GITHUB_ENV
58+ echo "CARGO_TERM_COLOR=always" >> $GITHUB_ENV
59+ echo "RUST_BACKTRACE=short" >> $GITHUB_ENV
60+ echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
61+ shell : bash
62+ - name : " Install Rust Problem Matcher"
63+ run : echo "::add-matcher::${{ github.action_path }}/rust.json"
64+ shell : bash
65+
5366 - name : Install rustup, if needed
5467 run : |
5568 if ! command -v rustup &> /dev/null ; then
@@ -88,14 +101,3 @@ runs:
88101
89102 - name : " Setup Rust Caching"
90103 uses : Swatinem/rust-cache@v2
91- - name : " Install Rust Problem Matcher"
92- run : echo "::add-matcher::${{ github.action_path }}/rust.json"
93- shell : bash
94- - name : " Setting Environment Variables"
95- run : |
96- echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
97- echo "CARGO_PROFILE_DEV_DEBUG=0" >> $GITHUB_ENV
98- echo "CARGO_TERM_COLOR=always" >> $GITHUB_ENV
99- echo "RUST_BACKTRACE=short" >> $GITHUB_ENV
100- echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
101- shell : bash
You can’t perform that action at this time.
0 commit comments