|
47 | 47 | - id: flags
|
48 | 48 | run: |
|
49 | 49 | : construct rustup command line
|
50 |
| - echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" |
51 |
| - echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" |
52 |
| - echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}" |
| 50 | + echo "targets=$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" >> $GITHUB_OUTPUT |
| 51 | + echo "components=$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" >> $GITHUB_OUTPUT |
| 52 | + echo "downgrade=${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}" >> $GITHUB_OUTPUT |
53 | 53 | env:
|
54 | 54 | targets: ${{inputs.target}}
|
55 | 55 | components: ${{inputs.components}}
|
@@ -94,16 +94,16 @@ runs:
|
94 | 94 | - name: Print installed versions
|
95 | 95 | id: versions
|
96 | 96 | run: |
|
97 |
| - echo "::set-output name=rustc-version::$(rustc --version)" |
| 97 | + echo "rustc-version=$(rustc --version)" >> $GITHUB_OUTPUT |
98 | 98 | rustc --version --verbose
|
99 |
| - echo "::set-output name=cargo-version::$(cargo --version)" |
| 99 | + echo "cargo-version=$(cargo --version)" >> $GITHUB_OUTPUT |
100 | 100 | cargo --version --verbose
|
101 |
| - echo "::set-output name=rustup-version::$(rustup --version)" |
| 101 | + echo "rustup-version=$(rustup --version)" >> $GITHUB_OUTPUT |
102 | 102 | rustup --version
|
103 | 103 |
|
104 | 104 | DATE=$(rustc --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
105 | 105 | HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
106 |
| - echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)" |
| 106 | + echo "cachekey=$(echo $DATE$HASH | head -c12)" >> $GITHUB_OUTPUT |
107 | 107 | shell: bash
|
108 | 108 |
|
109 | 109 | - name: "Setup Rust Caching"
|
|
0 commit comments