Skip to content

Commit

Permalink
Added GitHub Actions job for CMake on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Nov 5, 2023
1 parent d36a128 commit 15bafc1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,10 @@ jobs:
cxxstd64: "11-gnu,14-gnu,17-gnu,2a-gnu"
os: windows-2019

- name: CMake tests
cmake_tests: 1
os: windows-2022

timeout-minutes: 120
runs-on: ${{matrix.os}}

Expand Down Expand Up @@ -741,6 +745,7 @@ jobs:
b2 -d0 headers
- name: Run tests
if: matrix.cmake_tests == ''
shell: cmd
run: |
cd ../boost-root
Expand All @@ -763,3 +768,17 @@ jobs:
echo;
b2 %B2_ARGS% cxxstd=${{matrix.cxxstd32}} address-model=32 libs/%LIBRARY%/test
)
- name: Run CMake tests
if: matrix.cmake_tests
shell: cmd
run: |
mkdir __build_static__
cd __build_static__
cmake ../libs/%LIBRARY%/test/test_cmake
cmake --build . --target boost_%LIBRARY%_cmake_self_test -j %NUMBER_OF_PROCESSORS%
cd ..
mkdir __build_shared__
cd __build_shared__
cmake -DBUILD_SHARED_LIBS=On ../libs/%LIBRARY%/test/test_cmake
cmake --build . --target boost_%LIBRARY%_cmake_self_test -j %NUMBER_OF_PROCESSORS%

0 comments on commit 15bafc1

Please sign in to comment.