Skip to content

Commit af76188

Browse files
committed
improve test coverage
1 parent cebe07b commit af76188

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ on:
88
- master
99

1010
jobs:
11-
standard:
12-
name: Compile on ${{ matrix.os }}
11+
build:
12+
name: ${{ matrix.build-type }} on ${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [ubuntu-latest, windows-latest]
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
build-type: [shared, static]
1718
fail-fast: false
1819

20+
env:
21+
BUILD_SHARED: ${{ matrix.build-type == 'shared' && 'ON' || 'OFF' }}
22+
1923
steps:
2024
- uses: actions/checkout@v4
2125
with:
@@ -37,13 +41,22 @@ jobs:
3741
if: runner.os == 'Windows'
3842
run: |
3943
cmake -S . -B build -G "Visual Studio 17 2022" `
44+
-DNANOGUI_BUILD_SHARED=${{ env.BUILD_SHARED }} `
4045
"-DPython_EXECUTABLE=$(python -c 'import sys; print(sys.executable)')"
4146
4247
- name: Configure (Linux)
4348
if: runner.os == 'Linux'
4449
run: |
4550
cmake -S . -B build \
51+
-DNANOGUI_BUILD_SHARED=${{ env.BUILD_SHARED }} \
52+
"-DPython_EXECUTABLE=$(python3 -c 'import sys; print(sys.executable)')"
53+
54+
- name: Configure (macOS)
55+
if: runner.os == 'macOS'
56+
run: |
57+
cmake -S . -B build \
58+
-DNANOGUI_BUILD_SHARED=${{ env.BUILD_SHARED }} \
4659
"-DPython_EXECUTABLE=$(python3 -c 'import sys; print(sys.executable)')"
4760
4861
- name: Build C++
49-
run: cmake --build build -j 2 --config Release
62+
run: cmake --build build -j 2 --config Release

0 commit comments

Comments
 (0)