Skip to content

Commit ac30f02

Browse files
theKidOfArcraniaAmanieu
authored andcommitted
Properly escape /C and fix naming
1 parent b8b09d5 commit ac30f02

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- target: aarch64-pc-windows-msvc
2323
os: windows-latest
2424
rust: nightly
25-
test_unc: 1
25+
test_verbatim: 1
2626
no_std: 1
2727
- target: arm-unknown-linux-gnueabi
2828
os: ubuntu-latest
@@ -83,19 +83,19 @@ jobs:
8383
- target: i686-pc-windows-msvc
8484
os: windows-latest
8585
rust: nightly
86-
test_unc: 1
86+
test_verbatim: 1
8787
- target: x86_64-pc-windows-msvc
8888
os: windows-latest
8989
rust: nightly
90-
test_unc: 1
90+
test_verbatim: 1
9191
- target: i686-pc-windows-gnu
9292
os: windows-latest
9393
rust: nightly-i686-gnu
94-
test_unc: 1
94+
test_verbatim: 1
9595
- target: x86_64-pc-windows-gnu
9696
os: windows-latest
9797
rust: nightly-x86_64-gnu
98-
test_unc: 1
98+
test_verbatim: 1
9999
steps:
100100
- name: Print runner information
101101
run: uname -a
@@ -120,7 +120,7 @@ jobs:
120120
shell: bash
121121
env:
122122
NO_STD: ${{ matrix.no_std }}
123-
TEST_UNC: ${{ matrix.test_unc }}
123+
TEST_VERBATIM: ${{ matrix.test_verbatim }}
124124

125125
# Otherwise we use our docker containers to run builds
126126
- run: cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}

ci/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ else
3232
$run --features no-f16-f128 --release
3333
fi
3434

35-
if [ "${TEST_UNC:-}" = "1" ]; then
36-
path=$(cmd.exe "/C echo \\\\?\\%cd%\\testcrate\\target_unc")
37-
run="cargo test --manifest-path testcrate/Cargo.toml --target $target --target-dir $path"
35+
if [ "${TEST_VERBATIM:-}" = "1" ]; then
36+
verb_path=$(cmd.exe //C echo \\\\?\\%cd%\\testcrate\\target2)
37+
run="cargo test --manifest-path testcrate/Cargo.toml --target $target --target-dir $verb_path"
3838
$run
3939
$run --release
4040
$run --features c

0 commit comments

Comments
 (0)