Skip to content

Commit b0f1966

Browse files
theKidOfArcraniaAmanieu
authored andcommitted
Add tests for UNC paths on windows builds
1 parent b31d50e commit b0f1966

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
- target: aarch64-unknown-linux-gnu
2020
os: ubuntu-latest
2121
rust: nightly
22+
- target: aarch64-pc-windows-msvc
23+
os: windows-latest
24+
rust: nightly
25+
test_unc: 1
26+
no_std: 1
2227
- target: arm-unknown-linux-gnueabi
2328
os: ubuntu-latest
2429
rust: nightly
@@ -78,6 +83,7 @@ jobs:
7883
- target: i686-pc-windows-msvc
7984
os: windows-latest
8085
rust: nightly
86+
test_unc: 1
8187
- target: x86_64-pc-windows-msvc
8288
os: windows-latest
8389
rust: nightly
@@ -109,6 +115,9 @@ jobs:
109115
- run: ./ci/run.sh ${{ matrix.target }}
110116
if: matrix.os != 'ubuntu-latest'
111117
shell: bash
118+
env:
119+
NO_STD: ${{ matrix.no_std }}
120+
TEST_UNC: ${{ matrix.test_unc }}
112121

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

ci/run.sh

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

35+
if [ "${TEST_UNC:-}" = "1" ]; then
36+
run="cargo build --manifest-path testcrate/Cargo.toml --target $target --target-dir \"\\\\?\\$(pwd)\""
37+
$run
38+
$run --release
39+
$run --features c
40+
$run --features c --release
41+
$run --features no-asm
42+
$run --features no-asm --release
43+
$run --features no-f16-f128
44+
$run --features no-f16-f128 --release
45+
fi
46+
3547
if [ -d /builtins-target ]; then
3648
rlib_paths=/builtins-target/"${target}"/debug/deps/libcompiler_builtins-*.rlib
3749
else

0 commit comments

Comments
 (0)