File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 88 - master
99
1010jobs :
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
You can’t perform that action at this time.
0 commit comments