Skip to content

Commit 26ae068

Browse files
Hannes Steffenhagenhannes-steffenhagen-diffblue
authored andcommitted
Add github action to do CI checks against macOS
1 parent c82daba commit 26ae068

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: pull-request-checks
4+
on:
5+
pull_request:
6+
branches: [ develop ]
7+
8+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9+
jobs:
10+
check-macos-10_15-cmake-clang:
11+
runs-on: macos-10.15
12+
env:
13+
# CCache maximum size shouldn't be too big
14+
# because we have a global cache limit of 5G.
15+
# Full CProver uses about 100MB of cache,
16+
# we'll keep 5 times that around per OS
17+
# to account for different versions/different
18+
# flags
19+
# Bump so CI runs again 2
20+
CCACHE_MAXSIZE: 500Mi
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
submodules: true
25+
- name: Fetch dependencies
26+
run: brew install cmake ninja maven flex bison
27+
- name: Configure using CMake
28+
run: |
29+
mkdir build
30+
cd build
31+
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
32+
- name: Build with Ninja
33+
run: cd build; ninja
34+
- name: Run CTest
35+
run: cd build; ctest -V -L CORE .

0 commit comments

Comments
 (0)