Skip to content

Commit

Permalink
Test windows gnullvm in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwe committed Aug 25, 2024
1 parent ed3fd6a commit 61a5c8c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/toolchains/x86_64-pc-windows-gnu-clang.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_C_COMPILER_TARGET "x86_64-pc-win32-gnu")
set(CMAKE_C_COMPILER_TARGET "x86_64-pc-windows-gnu")
set(CMAKE_CXX_COMPILER_TARGET "x86_64-pc-windows-gnu")
41 changes: 41 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,47 @@ jobs:
working-directory: build
run: ctest --output-on-failure --build-config Debug -j 3

windows_gnullvm:
name: Test Windows gnullvm
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2022
arch:
- x86_64
# - i686
# - aarch64
compiler:
- clang
generator:
- ninja
- make
include:
- cmake: 3.22.6
- rust: 1.79.0

steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmakeVersion: "${{ matrix.cmake }}"
ninjaVersion: "~1.10.0"
- name: Install Rust
id: install_rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
targets: ${{matrix.arch}}-pc-windows-gnullvm
- name: Configure
run: cmake -S. -Bbuild "-DRust_TOOLCHAIN=${{steps.install_rust.outputs.name}}" --preset "${{ matrix.generator }}-${{ matrix.arch }}-pc-windows-gnu-${{ matrix.compiler }}"
- name: Run Tests
working-directory: build
run: ctest --output-on-failure --build-config Debug -j 3


# For now just test if hostbuild works when cross-compiling on windows.
# For testing everything we would also need to install a cross-compiler first.
windows_cross_hostbuild:
Expand Down

0 comments on commit 61a5c8c

Please sign in to comment.