3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-22 08:49:30 +01:00

Do not override value of an already set environment variable

This commit is contained in:
David Tolnay 2023-02-12 11:45:44 -08:00
parent 0b8aa5ea11
commit 5dd156c2f5
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -85,17 +85,23 @@ runs:
- run: | - run: |
: disable incremental compilation : disable incremental compilation
if [ -z ${CARGO_INCREMENTAL+set} ]; then
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
fi
shell: bash shell: bash
- run: | - run: |
: enable colors in Cargo output : enable colors in Cargo output
if [ -z ${CARGO_TERM_COLOR+set} ]; then
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
fi
shell: bash shell: bash
- run: | - run: |
: enable Cargo sparse registry # ignored by stable cargo : enable Cargo sparse registry # ignored by stable cargo
if [ -z ${CARGO_UNSTABLE_SPARSE_REGISTRY+set} ]; then
echo CARGO_UNSTABLE_SPARSE_REGISTRY=true >> $GITHUB_ENV echo CARGO_UNSTABLE_SPARSE_REGISTRY=true >> $GITHUB_ENV
fi
shell: bash shell: bash
- run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose - run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose