3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-26 01:59:32 +01:00

Merge pull request #22 from dtolnay/noversion

Delete version output
This commit is contained in:
David Tolnay 2022-07-15 11:08:53 -07:00 committed by GitHub
commit 9ca18f93cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View file

@ -30,8 +30,6 @@ jobs:
id: toolchain id: toolchain
with: with:
toolchain: ${{matrix.rust}} toolchain: ${{matrix.rust}}
- name: Check ${{'${{steps.toolchain.outputs.version}}'}}
run: echo '${{steps.toolchain.outputs.version}}'
- name: Check ${{'${{steps.toolchain.outputs.cachekey}}'}} - name: Check ${{'${{steps.toolchain.outputs.cachekey}}'}}
run: echo '${{steps.toolchain.outputs.cachekey}}' run: echo '${{steps.toolchain.outputs.cachekey}}'
- run: rustc --version - run: rustc --version

View file

@ -20,9 +20,6 @@ outputs:
cachekey: cachekey:
description: A short hash of the rustc version, appropriate for use as a cache key. "20220627a831" description: A short hash of the rustc version, appropriate for use as a cache key. "20220627a831"
value: ${{steps.rustc-version.outputs.cachekey}} value: ${{steps.rustc-version.outputs.cachekey}}
version:
description: Version as reported by `rustc --version`. "rustc 1.62.0 (a8314ef7d 2022-06-27)"
value: ${{steps.rustc-version.outputs.version}}
runs: runs:
using: composite using: composite
@ -56,7 +53,6 @@ runs:
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') 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')
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p') HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)" echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
echo "::set-output name=version::$(rustc --version)"
shell: bash shell: bash
- run: rustc --version --verbose - run: rustc --version --verbose
shell: bash shell: bash