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 a958880
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 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 All @@ -737,10 +741,13 @@ jobs:
xcopy /s /e /q %GITHUB_WORKSPACE% libs\%LIBRARY%\
git submodule update --init tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--jobs %GIT_FETCH_JOBS%" %LIBRARY%
cmd /c bootstrap
b2 -d0 headers
if "${{matrix.cmake_tests}}" == "" (
cmd /c bootstrap
b2 -d0 headers
)
- name: Run tests
if: matrix.cmake_tests == ''
shell: cmd
run: |
cd ../boost-root
Expand All @@ -763,3 +770,18 @@ 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: |
cd ../boost-root
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 a958880

Please sign in to comment.