Properly escape /C and fix naming

This commit is contained in:
theKidOfArcrania 2024-05-15 11:05:20 -07:00 committed by Amanieu d'Antras
parent e3d86a8350
commit fd290b1339
2 changed files with 9 additions and 9 deletions

View file

@ -22,7 +22,7 @@ jobs:
- target: aarch64-pc-windows-msvc
os: windows-latest
rust: nightly
test_unc: 1
test_verbatim: 1
no_std: 1
- target: arm-unknown-linux-gnueabi
os: ubuntu-latest
@ -83,19 +83,19 @@ jobs:
- target: i686-pc-windows-msvc
os: windows-latest
rust: nightly
test_unc: 1
test_verbatim: 1
- target: x86_64-pc-windows-msvc
os: windows-latest
rust: nightly
test_unc: 1
test_verbatim: 1
- target: i686-pc-windows-gnu
os: windows-latest
rust: nightly-i686-gnu
test_unc: 1
test_verbatim: 1
- target: x86_64-pc-windows-gnu
os: windows-latest
rust: nightly-x86_64-gnu
test_unc: 1
test_verbatim: 1
steps:
- name: Print runner information
run: uname -a
@ -120,7 +120,7 @@ jobs:
shell: bash
env:
NO_STD: ${{ matrix.no_std }}
TEST_UNC: ${{ matrix.test_unc }}
TEST_VERBATIM: ${{ matrix.test_verbatim }}
# Otherwise we use our docker containers to run builds
- run: cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}

View file

@ -32,9 +32,9 @@ else
$run --features no-f16-f128 --release
fi
if [ "${TEST_UNC:-}" = "1" ]; then
path=$(cmd.exe "/C echo \\\\?\\%cd%\\testcrate\\target_unc")
run="cargo test --manifest-path testcrate/Cargo.toml --target $target --target-dir $path"
if [ "${TEST_VERBATIM:-}" = "1" ]; then
verb_path=$(cmd.exe //C echo \\\\?\\%cd%\\testcrate\\target2)
run="cargo test --manifest-path testcrate/Cargo.toml --target $target --target-dir $verb_path"
$run
$run --release
$run --features c