Debian Codegraph @

.github/workflows/cxx11-macos.yaml

raw
1 name: C++11
2
3 on:
4 push:
5 branches: [ "master", "dev" ]
6 pull_request:
7 branches: [ "master", "dev" ]
8
9 jobs:
10 build:
11 name: macos
12 runs-on: macos-latest
13
14 steps:
15 - name: GoogleTest
16 run: |
17 brew tap-new Haivision/gt-local
18 brew extract --version=1.12.1 --force googletest Haivision/gt-local
19 brew install [email protected]
20 # NOTE: 1.12.1 is the last version that requires C++11; might need update later
21 # curl -o googletest.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/23e7fb4dc0cc73facc3772815741e1deb87d6406/Formula/googletest.rb
22 # brew install -s googletest.rb
23 - uses: actions/checkout@v3
24 - name: configure
25 run: |
26 mkdir _build && cd _build
27 cmake ../ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=OFF -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DUSE_CXX_STD=17
28 - name: build
29 run: cd _build && cmake --build ./
30 - name: test
31 run: cd _build && ctest --extra-verbose