Skip to content

Commit 145f21f

Browse files
committed
Add -Zbuild-std test
1 parent b36dd19 commit 145f21f

File tree

9 files changed

+1042
-4
lines changed

9 files changed

+1042
-4
lines changed

.github/workflows/rust.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,30 @@ jobs:
6060
run: cargo test --verbose
6161
- name: Test no-rustc mode
6262
run: cargo check --no-default-features
63+
64+
build-std:
65+
strategy:
66+
matrix:
67+
include:
68+
- os: ubuntu-latest
69+
host_target: x86_64-unknown-linux-gnu
70+
- os: macos-latest
71+
host_target: x86_64-apple-darwin
72+
- os: windows-latest
73+
host_target: i686-pc-windows-msvc
74+
runs-on: ${{ matrix.os }}
75+
# Run tests under a directory with a space in it to double check the windows path heuristic
76+
defaults:
77+
run:
78+
working-directory: "dir with spaces/build std"
79+
steps:
80+
- uses: actions/checkout@v4
81+
with:
82+
path: "dir with spaces/build std"
83+
- uses: dtolnay/rust-toolchain@nightly
84+
with:
85+
components: rust-src
86+
- name: Run build-std test
87+
env:
88+
UI_TEST_INTEGRATION_DIR: build-std
89+
run: cargo test --verbose --test integration -- --check

0 commit comments

Comments
 (0)