Skip to content

handle inf constraints in general inequalities by setting correspondi… #171

handle inf constraints in general inequalities by setting correspondi…

handle inf constraints in general inequalities by setting correspondi… #171

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 . --config $CMAKE_BUILD_TYPE
- name: Build piqp
shell: bash -l {0}
if: runner.os != 'Windows'
working-directory: build
run: cmake --build . --config $CMAKE_BUILD_TYPE -- -j2
- name: Install piqp
shell: bash -l {0}
if: runner.os == 'Windows'
working-directory: build
run: cmake --install . --config $CMAKE_BUILD_TYPE
- name: Install piqp
shell: bash -l {0}
if: runner.os != 'Windows'
working-directory: build
run: sudo cmake --install . --config $CMAKE_BUILD_TYPE
- name: Test piqp
shell: bash -l {0}
working-directory: build
run: ctest -C $CMAKE_BUILD_TYPE --test-dir tests --verbose
- name: Test piqp c interface
shell: bash -l {0}
working-directory: build
run: ctest -C $CMAKE_BUILD_TYPE --test-dir interfaces/c/tests --verbose