Skip to content

Commit

Permalink
Merge pull request #65 from dtolnay/envset
Browse files Browse the repository at this point in the history
Do not override value of an already set environment variable
  • Loading branch information
dtolnay authored Feb 12, 2023
2 parents 0b8aa5e + 5dd156c commit dd1a82b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,23 @@ runs:

- run: |
: disable incremental compilation
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
if [ -z ${CARGO_INCREMENTAL+set} ]; then
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
fi
shell: bash
- run: |
: 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
- run: |
: 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
- run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose
Expand Down

0 comments on commit dd1a82b

Please sign in to comment.