Skip to content

Commit

Permalink
Properly escape /C and fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
theKidOfArcrania committed May 15, 2024
1 parent 74b23b2 commit 3d2db8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d2db8d

Please sign in to comment.