Skip to content

Commit 2ae5004

Browse files
committed
ci: add components test
1 parent c98eb67 commit 2ae5004

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/ci-linux-osx-win-conda.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: CI - Linux/OSX/Windows - Conda
22

33
on:
44
push:
5-
branches: devel
5+
branches:
6+
- devel
67
pull_request:
78
paths-ignore:
89
- CHANGELOG.md
@@ -162,20 +163,29 @@ jobs:
162163
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
163164
shell: bash -l {0}
164165
run: |
165-
cd test/packaging/external
166166
export PROXSUITE_GIT_REPOSITORY="file://"$GITHUB_WORKSPACE
167167
export PROXSUITE_GIT_TAG="test-external-"$(git rev-parse --short HEAD)
168168
git tag $PROXSUITE_GIT_TAG
169-
cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
169+
cmake -E remove_directory build
170+
cmake -B build -S test/packaging/external -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
170171
cmake --build build --config ${{ matrix.build_type }} --target all
171172
./build/bin/run-proxqp
172173
173174
- name: Test CMake packaging [Conda/Linux&macOS]
174175
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
175176
shell: bash -l {0}
176177
run: |
177-
cd test/packaging/cmake
178-
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DPACKAGE_PREFIX_DIR=${CONDA_PREFIX}
178+
cmake -E remove_directory build
179+
cmake -B build -S test/packaging/cmake -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DPACKAGE_PREFIX_DIR=${CONDA_PREFIX}
180+
cmake --build build --config ${{ matrix.build_type }} --target all
181+
./build/bin/run-proxqp
182+
183+
- name: Test CMake packaging with components [Conda/Linux&macOS]
184+
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
185+
shell: bash -l {0}
186+
run: |
187+
cmake -E remove_directory build
188+
cmake -B build -S test/packaging/cmake-components -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DBUILD_WITH_VECTORIZATION_SUPPORT=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DPACKAGE_PREFIX_DIR=${CONDA_PREFIX}
179189
cmake --build build --config ${{ matrix.build_type }} --target all
180190
./build/bin/run-proxqp
181191

0 commit comments

Comments
 (0)