Debian Codegraph @

.github/workflows/macos.yml

raw
1 name: MacOS
2
3 on:
4 push:
5 pull_request:
6 branches: [ master ]
7
8 jobs:
9 build:
10 runs-on: ${{ matrix.os }}
11 strategy:
12 matrix:
13 os: [macos-latest]
14 compiler: [g++, clang++]
15 flags: [-std=c++11, -std=c++17]
16 optimize: [-O2]
17
18 env:
19 CXX: ${{ matrix.compiler }}
20 CXXFLAGS: ${{ matrix.flags }} ${{ matrix.optimize }}
21 CTEST_OUTPUT_ON_FAILURE: 1
22 CTEST_NO_TESTS_ACTION: error
23 CTEST_PARALLEL_LEVEL: 0
24 CMAKE_BUILD_PARALLEL_LEVEL: 4
25
26 steps:
27 - name: Checkout
28 uses: actions/checkout@v4
29
30 - name: CMake configure
31 run: cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=Release -B build
32
33 - name: CMake build
34 run: cmake --build build
35
36 - name: CMake test
37 run: ctest --test-dir build