Skip to content

asdf

asdf #67

Workflow file for this run

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"
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