Skip to content

Commit 25b5080

Browse files
committed
Add unix-cmake test to GHA
To not inflate the build matrix too much, just use the default settings; we mostly need this to test the CMake flow, not to test the actual code.
1 parent 4d0043f commit 25b5080

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ jobs:
3434
make test defines=${{matrix.defines}} config=coverage -j2
3535
bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov -X search -t ${{secrets.CODECOV_TOKEN}} -B ${{github.ref}}
3636
37+
unix-cmake:
38+
strategy:
39+
matrix:
40+
os: [ubuntu, macos]
41+
name: ${{matrix.os}} cmake
42+
runs-on: ${{matrix.os}}-latest
43+
steps:
44+
- uses: actions/checkout@v1
45+
- name: cmake configure
46+
run: |
47+
mkdir cmake && cd cmake
48+
cmake .. -D PUGIXML_BUILD_TESTS=ON
49+
- name: cmake test
50+
run: |
51+
make -C cmake -j2
52+
3753
windows:
3854
runs-on: windows-latest
3955
strategy:

0 commit comments

Comments
 (0)