We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd1a82b commit de1aa37Copy full SHA for de1aa37
action.yml
@@ -98,9 +98,11 @@ runs:
98
shell: bash
99
100
- run: |
101
- : enable Cargo sparse registry # ignored by stable cargo
102
- if [ -z ${CARGO_UNSTABLE_SPARSE_REGISTRY+set} ]; then
103
- echo CARGO_UNSTABLE_SPARSE_REGISTRY=true >> $GITHUB_ENV
+ : 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]\.'
104
+ then
105
+ echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
106
fi
107
108
0 commit comments