mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2025-12-27 01:54:20 -05:00
Use the built-in working-directory selector and default to "." if rust-src-dir is not set
This commit is contained in:
@@ -211,12 +211,9 @@ runs:
|
||||
- id: versions
|
||||
name: Print installed versions
|
||||
shell: bash
|
||||
env:
|
||||
rust_src_dir: ${{inputs.rust-src-dir}}
|
||||
# Switch to the Rust sub-directory
|
||||
working-directory: ${{inputs.rust-src-dir || "."}}
|
||||
run: |
|
||||
# Switch to the selected sub-directory for
|
||||
cd "$rust_src_dir"
|
||||
|
||||
echo "rustc-version=$(rustc --version)" >> $GITHUB_OUTPUT
|
||||
rustc --version --verbose
|
||||
echo "cargo-version=$(cargo --version)" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user