mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-22 08:49:30 +01:00
Ensure version comes from the just-installed toolchain
This commit is contained in:
parent
d335e67920
commit
19603a2b92
1 changed files with 3 additions and 3 deletions
|
@ -50,9 +50,9 @@ runs:
|
|||
- id: rustc-version
|
||||
run: |
|
||||
: create cachekey
|
||||
DATE=$(rustc --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
||||
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
||||
DATE=$(rustc +${{inputs.toolchain}} --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
||||
HASH=$(rustc +${{inputs.toolchain}} --version --verbose | sed -ne 's/^commit-hash: //p')
|
||||
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
|
||||
shell: bash
|
||||
- run: rustc --version --verbose
|
||||
- run: rustc +${{inputs.toolchain}} --version --verbose
|
||||
shell: bash
|
||||
|
|
Loading…
Reference in a new issue