Skip to content

remove core

remove core #76

Workflow file for this run

name: unit-tests
on:
push:
branches: [ main ]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create Python virtual environment
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
- name: Install Ninja
run: brew upgrade && brew install ninja
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Install Python dependencies
run: |
source venv/bin/activate
pip install conan
- name: Install gtest
run: |
brew install googletest
- name: Create default profile
run: |
source venv/bin/activate
conan profile detect
- name: Install dependencies
run: |
source venv/bin/activate
conan install . -s build_type=${{env.BUILD_TYPE}} --build=missing
- name: Configure CMake
run: cmake . -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build .
- name: Test
working-directory: ${{github.workspace}}
run: ctest -C ${{env.BUILD_TYPE}}