From e66181f2ca1a39314278cc95c548bd83156e5dd3 Mon Sep 17 00:00:00 2001 From: Brendan Barnes Date: Tue, 9 Jul 2024 04:54:03 +0000 Subject: [PATCH] save --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 899277f..f5b97b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,4 +48,32 @@ jobs: - name: Test working-directory: ${{github.workspace}}/build - run: ctest --output-on-failure \ No newline at end of file + run: ctest --output-on-failure + + build-and-test-windows: + name: Build and Test (Windows) + runs-on: windows-latest + strategy: + matrix: + clang_version: [15, 16, 17, 18] + + steps: + - uses: actions/checkout@v4 + + - name: Install LLVM and Clang + uses: KyleMayes/install-llvm-action@v1 + with: + version: ${{ matrix.clang_version }} + + - name: Configure CMake + env: + CXX: clang++ + run: | + cmake -B ${{github.workspace}}/build -DSQUINT_BUILD_TESTS=ON -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" -T ClangCL + + - name: Build + run: cmake --build ${{github.workspace}}/build --config Release + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest -C Release --output-on-failure \ No newline at end of file