Skip to content

Commit

Permalink
Merge pull request #69 from dtolnay/sparseregistry
Browse files Browse the repository at this point in the history
Tweak sparse registry conditional
  • Loading branch information
dtolnay committed Feb 12, 2023
2 parents b17a489 + 138ed95 commit 25dc93b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ runs:
- run: |
: enable Cargo sparse registry
# except on 1.66 and 1.67, on which it is unstable
if [ -z ${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set} ] \
&& ! rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: 1\.6[67]\.'
then
echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
if [ -z ${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set} ]; then
if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | not grep -q '^release: 1\.6[67]\.'; then
echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
fi
fi
shell: bash
Expand Down

0 comments on commit 25dc93b

Please sign in to comment.