Skip to content

Commit

Permalink
Test standalone cpp build on linux too.
Browse files Browse the repository at this point in the history
Signed-off-by: Bertrand Rix <[email protected]>
  • Loading branch information
obrix committed Aug 2, 2024
1 parent 4faa24c commit ccdb6d6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ jobs:
working-directory: ./docs
run: make html doctest SPHINXOPTS="-W"

- name: Test standalone cpp build
shell: bash
working-directory: ./dist
run: | #Unzip binaries.zip produced by setup.py and try to build only the cpp API and bindings with it
unzip binaries.zip && mkdir build && cd build
cmake $GITHUB_WORKSPACE/cpp -DBUILD_PYPOWSYBL_JAVA=OFF -DPYPOWSYBL_JAVA_LIBRARY_DIR=$GITHUB_WORKSPACE/dist/lib -DPYPOWSYBL_JAVA_INCLUDE_DIR=$GITHUB_WORKSPACE/dist/include
cmake --build . --config Release
macos_windows_build:
name: Build ${{ matrix.config.name }} ${{ matrix.python.name }} wheel
runs-on: ${{ matrix.config.os }}
Expand Down Expand Up @@ -161,10 +169,10 @@ jobs:
working-directory: ./docs
run: make html doctest SPHINXOPTS="-W"

- name: Test standalone build
- name: Test standalone cpp build
shell: bash
working-directory: ./dist
run: | #Unzip binaries.zip produced by setup.py and try to build only the the cpp API and bindings with it
run: | #Unzip binaries.zip produced by setup.py and try to build only the cpp API and bindings with it
unzip binaries.zip && mkdir build && cd build
cmake $GITHUB_WORKSPACE/cpp -DBUILD_PYPOWSYBL_JAVA=OFF -DPYPOWSYBL_JAVA_LIBRARY_DIR=$GITHUB_WORKSPACE/dist/lib -DPYPOWSYBL_JAVA_INCLUDE_DIR=$GITHUB_WORKSPACE/dist/include
cmake --build . --config Release
Expand Down

0 comments on commit ccdb6d6

Please sign in to comment.