mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-06-08 03:36:37 +00:00
Make verbose rustc version information available
* commit-hash: rustc's source revision long commit hash * abbrev-hash: rustc's source revision short commit hash * commit-date: rustc's source revision commit date * release: rustc's version The earliest compatible rustc release is 1.16.0 (2017-03-10). Earlier versions did not implement `--verbose --version`s.
This commit is contained in:
parent
6b70b4ca85
commit
d68dbecc78
2 changed files with 32 additions and 12 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -8,12 +8,13 @@ on:
|
|||
|
||||
jobs:
|
||||
install:
|
||||
name: Rust ${{matrix.rust}}
|
||||
runs-on: ubuntu-latest
|
||||
name: Rust ${{matrix.rust}} on ${{matrix.os}}
|
||||
runs-on: ${{matrix.os}}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
rust: [nightly, beta, stable]
|
||||
rust: [nightly, beta, stable, "1.16"]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./
|
||||
|
@ -23,4 +24,12 @@ jobs:
|
|||
toolchain: ${{matrix.rust}}
|
||||
- name: Check ${{'${{steps.toolchain.outputs.version}}'}}
|
||||
run: echo '${{steps.toolchain.outputs.version}}'
|
||||
- run: rustc --version
|
||||
- name: Check ${{'${{steps.toolchain.outputs.commit-hash}}'}}
|
||||
run: echo '${{steps.toolchain.outputs.commit-hash}}'
|
||||
- name: Check ${{'${{steps.toolchain.outputs.abbrev-hash}}'}}
|
||||
run: echo '${{steps.toolchain.outputs.abbrev-hash}}'
|
||||
- name: Check ${{'${{steps.toolchain.outputs.commit-date}}'}}
|
||||
run: echo '${{steps.toolchain.outputs.commit-date}}'
|
||||
- name: Check ${{'${{steps.toolchain.outputs.release}}'}}
|
||||
run: echo '${{steps.toolchain.outputs.release}}'
|
||||
- run: rustc --verbose --version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue