-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (40 loc) Β· 1.11 KB
/
Copy pathbuild-and-test-macos.yml
File metadata and controls
40 lines (40 loc) Β· 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build and Test macOS
on: [push]
jobs:
build:
name: ${{ matrix.config.name }} (${{matrix.build_type}})
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
config:
- {
name: "macOS Latest clang",
os: macos-latest,
cc: "clang",
cxx: "clang++",
}
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
steps:
- uses: actions/checkout@v3
- run: echo "πββοΈ Running job ${{ matrix.config.name }} (${{matrix.build_type}})."
- name: π¦ Install dependencies
run: brew install ninja doxygen graphviz
- name: π¨ Compiler info
run: |
which cmake
cmake --version
which ${CXX}
${CXX} --version
- name: π·ββοΈ Build
run: |
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ..
cmake --build .
- name: π Test
run: |
cd build
ctest -C ${{matrix.build_type}}