mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-12-22 15:45:50 +02:00
Merge pull request #65 from dtolnay/envset
Do not override value of an already set environment variable
This commit is contained in:
commit
dd1a82b720
1 changed files with 9 additions and 3 deletions
12
action.yml
12
action.yml
|
@ -85,17 +85,23 @@ runs:
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
: disable incremental compilation
|
: disable incremental compilation
|
||||||
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
|
if [ -z ${CARGO_INCREMENTAL+set} ]; then
|
||||||
|
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
: enable colors in Cargo output
|
: enable colors in Cargo output
|
||||||
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
|
if [ -z ${CARGO_TERM_COLOR+set} ]; then
|
||||||
|
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
|
||||||
echo CARGO_UNSTABLE_SPARSE_REGISTRY=true >> $GITHUB_ENV
|
if [ -z ${CARGO_UNSTABLE_SPARSE_REGISTRY+set} ]; then
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue