File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,10 @@ runs:
171
171
run : |
172
172
if [[ -d "$rust_src_dir" ]]; then
173
173
cd "$rust_src_dir"
174
+ else
175
+ echo "'rust-src-dir' does not point to an existing directory" >&2
176
+ echo "The value of 'rust-src-dir' is: ${rust_src_dir}" >&2
177
+ exit 1
174
178
fi
175
179
if [[ -z "$toolchain" && ( -f "rust-toolchain" || -f "rust-toolchain.toml") ]]
176
180
then
@@ -201,7 +205,12 @@ runs:
201
205
- id : versions
202
206
name : Print installed versions
203
207
shell : bash
208
+ env :
209
+ rust_src_dir : ${{inputs.rust-src-dir}}
204
210
run : |
211
+ # Switch to the selected sub-directory for
212
+ cd "$rust_src_dir"
213
+
205
214
echo "rustc-version=$(rustc --version)" >> $GITHUB_OUTPUT
206
215
rustc --version --verbose
207
216
echo "cargo-version=$(cargo --version)" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments