microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
.github/actions/toolchains/rust/action.yml
16lines · modecode
| 1 | name: rust-toolchain |
| 2 | inputs: |
| 3 | toolchain: |
| 4 | required: false |
| 5 | components: |
| 6 | required: true |
| 7 | |
| 8 | runs: |
| 9 | using: composite |
| 10 | steps: |
| 11 | - shell: pwsh |
| 12 | run: | |
| 13 | rustup override set ${{ inputs.toolchain || 'stable' }} |
| 14 | ${{ inputs.components && format('rustup component add {0}', inputs.components) }} |
| 15 | cargo --version |
| 16 | rustc --version |
| 17 | |