Skip to content

Commit

Permalink
Test osqp-eigen with float and doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Aug 2, 2022
1 parent c7f0e30 commit 1251992
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ env:
# Test with different operating systems
jobs:
build:
name: '[${{ matrix.os }}@${{ matrix.build_type }}]'
name: '[${{ matrix.os }}@${{ matrix.build_type }}] [float:${{ matrix.float }}]'
runs-on: ${{ matrix.os }}
strategy:
matrix:
build_type: [Debug, Release]
os: [ubuntu-latest, macOS-latest, windows-latest]
float: [ON, OFF]
fail-fast: false

# operating system dependences
Expand Down Expand Up @@ -79,7 +80,7 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/install/deps
key: source-deps-${{ runner.os }}-vcpkg-robotology-${{ env.vcpkg_robotology_TAG }}-osqp-${{ env.osqp_TAG }}-catch2-${{ env.Catch2_TAG }}
key: source-deps-${{ runner.os }}-${{ matrix.build_type }}-use-float-${{ matrix.float }}-vcpkg-robotology-${{ env.vcpkg_robotology_TAG }}-osqp-${{ env.osqp_TAG }}-catch2-${{ env.Catch2_TAG }}

- name: Source-based Dependencies [Windows]
if: steps.cache-source-deps.outputs.cache-hit != 'true' && matrix.os == 'windows-latest'
Expand All @@ -92,6 +93,7 @@ jobs:
mkdir -p build
cd build
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \
-DDFLOAT=${{ matrix.float }} \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps ..
cmake --build . --config ${{ matrix.build_type }} --target INSTALL
Expand All @@ -106,7 +108,8 @@ jobs:
cd osqp
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps ..
cmake -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps \
-DDFLOAT=${{ matrix.float }} ..
cmake --build . --config ${{ matrix.build_type }} --target install
# catch 2
Expand Down

0 comments on commit 1251992

Please sign in to comment.