Skip to content

Commit

Permalink
Add -Zbuild-std test
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Jun 4, 2024
1 parent b36dd19 commit 145f21f
Show file tree
Hide file tree
Showing 9 changed files with 1,042 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,30 @@ jobs:
run: cargo test --verbose
- name: Test no-rustc mode
run: cargo check --no-default-features

build-std:
strategy:
matrix:
include:
- os: ubuntu-latest
host_target: x86_64-unknown-linux-gnu
- os: macos-latest
host_target: x86_64-apple-darwin
- os: windows-latest
host_target: i686-pc-windows-msvc
runs-on: ${{ matrix.os }}
# Run tests under a directory with a space in it to double check the windows path heuristic
defaults:
run:
working-directory: "dir with spaces/build std"
steps:
- uses: actions/checkout@v4
with:
path: "dir with spaces/build std"
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: Run build-std test
env:
UI_TEST_INTEGRATION_DIR: build-std
run: cargo test --verbose --test integration -- --check
Loading

0 comments on commit 145f21f

Please sign in to comment.