File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments