-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (44 loc) · 1.35 KB
/
build_test.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
54
55
name: Build-Test
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
# Add ssh-key to clone repository cadical
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup Libraries
run: |
if [ "$(uname)" == "Darwin" ]; then
brew install libarchive pybind11
export LDFLAGS="-L/usr/local/opt/libarchive/lib -L/usr/local/lib"
export CPPFLAGS="-I/usr/local/opt/libarchive/include -I/usr/local/include -std=c++11"
else
sudo apt-get update
sudo apt-get install -y libarchive-dev
sudo apt-get install -y pybind11-dev
fi
- name: Build
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
cd ..
- name: Run tests
run: |
set -e -u -x
cd build
if [ "$(uname)" == "Darwin" ]; then
otool -L test/tests_streamcompressor
fi
ctest --debug