awk stage0 file on CI
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
1adfffd07f
commit
efb153eb5a
2
.github/workflows/dependencies.yml
vendored
2
.github/workflows/dependencies.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
- name: install the bootstrap toolchain
|
- name: install the bootstrap toolchain
|
||||||
run: |
|
run: |
|
||||||
# Extract the stage0 version
|
# Extract the stage0 version
|
||||||
TOOLCHAIN=$(jq -r '.compiler | {version,date} | join("-")' -- src/stage0.json)
|
TOOLCHAIN=$(awk -F= '{a[$1]=$2} END {print(a["compiler_version"] "-" a["compiler_date"])}' src/stage0)
|
||||||
# Install and set as default
|
# Install and set as default
|
||||||
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
|
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
|
||||||
rustup default $TOOLCHAIN
|
rustup default $TOOLCHAIN
|
||||||
|
Loading…
Reference in New Issue
Block a user