Skip to content

new release

new release #147

Workflow file for this run

name: Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
CMAKE_BUILD_TYPE: Release
ENABLE_SANITIZERS: ON
jobs:
tests:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-12, macos-14, windows-latest ]
eigen: [ 3.3.7, 3.4.0 ]
exclude:
- os: macos-14
eigen: 3.3.7
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge
python-version: "3.10"
activate-environment: piqp
- name: Install dependencies
shell: bash -l {0}
run: |
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
conda config --remove channels defaults
# Compiler infrastructure
mamba install cmake compilers make pkg-config
# Eigen
mamba install eigen=${{ matrix.eigen }}
# Dependencies
mamba install libmatio
- name: Setup working directories
shell: bash -l {0}
run: mkdir -p build
- name: Configure piqp
shell: bash -l {0}
working-directory: build
run: cmake .. -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DENABLE_SANITIZERS=$ENABLE_SANITIZERS
- name: Build piqp
shell: bash -l {0}
if: runner.os == 'Windows'
working-directory: build
run: cmake --build .
- name: Build piqp
shell: bash -l {0}
if: runner.os != 'Windows'
working-directory: build
run: cmake --build . -- -j2
- name: Test piqp
shell: bash -l {0}
working-directory: build
run: ctest --test-dir tests --verbose