Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Initial commit

Initial commit #47

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python packages
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Install Doxygen
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install -y doxygen
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install doxygen.install
else
brew install doxygen
fi
- uses: seanmiddleditch/gha-setup-ninja@v3
- uses: seanmiddleditch/gha-setup-vsdevenv@v4
- name: Configure & Build
run: |
cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}