Skip to content

Commit 70d1711

Browse files
committed
First stab at a macos build
1 parent 05df300 commit 70d1711

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,48 @@ jobs:
103103
run: ctest --output-on-failure --test-dir build -j %NUMBER_OF_PROCESSORS%
104104
shell: cmd
105105

106+
macos-builds:
107+
name: ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
108+
runs-on: macos-latest
109+
strategy:
110+
matrix:
111+
cxx:
112+
- g++
113+
- clang++
114+
build_type: [Debug, Release]
115+
std: [11]
116+
include:
117+
- cxx: g++
118+
cc: gcc
119+
- cxx: clang++
120+
cc: clang
121+
122+
steps:
123+
- uses: actions/checkout@v4
124+
125+
- name: Configure build
126+
working-directory: ${{runner.workspace}}
127+
env:
128+
CC: ${{matrix.cc}}
129+
CXX: ${{matrix.cxx}}
130+
run: |
131+
cmake -Bbuild -H$GITHUB_WORKSPACE \
132+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
133+
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
134+
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
135+
-DCMAKE_CXX_EXTENSIONS=ON \
136+
-DDBC_TEST_LOCALE_INDEPENDENCE=ON
137+
138+
- name: Build tests + lib
139+
working-directory: ${{runner.workspace}}
140+
run: cmake --build build --parallel `sysctl -n hw.ncpu`
141+
142+
- name: Run tests
143+
env:
144+
CTEST_OUTPUT_ON_FAILURE: 1
145+
working-directory: ${{runner.workspace}}
146+
run: ctest --output-on-failure --test-dir build -j `sysctl -n hw.ncpu`
147+
106148
format-check:
107149
runs-on: ubuntu-latest
108150

0 commit comments

Comments
 (0)