Skip to content

Prepare for conan package #17

Prepare for conan package

Prepare for conan package #17

Workflow file for this run

name: Mac unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
mac-tests:
runs-on: macos-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name : installPackages
run : brew install eigen boost boost-python3 libomp gflags
- name : install python packages
run: pip3 install numpy setuptools --break-system-packages
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
- name: cmake
run: mkdir build && cd build && cmake .. -DLIBCMAES_BUILD_PYTHON=On -DLIBCMAES_BUILD_TESTS=On -DLIBCMAES_USE_OPENMP=On
- name: compile
run: cd build && cmake --build . -j${{ steps.cpu-cores.outputs.count }}
- name: Run ctest
run: cd build && ctest -j${{ steps.cpu-cores.outputs.count }} --output-on-failure