-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.31 KB
/
experimental-build.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: experimental-build
on: [push]
jobs:
build:
runs-on: macos-latest
env:
BUILD_TYPE: ${{matrix.BUILD_TYPE}}
strategy:
fail-fast: false
matrix:
include:
- name: XCode Release aggressive cppcheck, not standalone
BUILD_TYPE: Release
- name: XCode Debug aggressive cppcheck, not standalone
BUILD_TYPE: Debug
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up dependencies for macOS
run: |
rm '/usr/local/bin/2to3-3.11'
rm '/usr/local/bin/idle3.11'
rm '/usr/local/bin/pydoc3.11'
rm '/usr/local/bin/python3.11'
rm '/usr/local/bin/python3.11-config'
brew update
brew install boost cppcheck
- name: Create build environment
run: mkdir ${{github.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: |
export CC=clang
export CXX=clang++
cmake "$GITHUB_WORKSPACE" "-DCMAKE_BUILD_TYPE=$BUILD_TYPE" \
-DCPPCHECK_AGGRESSIVE=ON -Wdev --warn-uninitialized
- name: Build
working-directory: ${{github.workspace}}/build
run: make -j3
continue-on-error: true