Skip to content

Commit fadcd2e

Browse files
authored
Cross-Platform Wheels (#25)
* Squash-Merged osx_wheel * Squash-Merged windows-wheel * feat: tests for multi platforms * fix: round brackets * fix: configure cmake * fix: added shell bash line * fix: uncomment env.BOOST_ROOT * fix: configure cmake separatly * fix: format * feat: testpypi wheels * feat: python tests for wheels * fix: install open3d on testing wheel step * fix: remove parallel jobs * fix: macos wheel script * fix: removed dependency on open3d * fix: returned 3.10 wheel tests * fix: correct pattern matching * fix: removed open3d import from tests * fix: try from import and link cilantro directly * fix: use markus action for boost install on macos * fix: add boost root to macos build * fix: try set dyld library path for macos build * fix: set dyld * fix: comment macos wheel * fix: remove test_macos dep * fix: macos try static boost * fix: explicitly say to use static boost on macos * fix: markus boost for macos in tests.yml * fix: quickfix yml syntax * fix: yml file * fix: cmake build for macos and windows * fix: syntax yml pipe * fix: windows step * fix: markus for all matrix.os * fix: shell bash * fix: space before slash * fix: shell bash * fix: sep cmake conf windows unix * fix: cmake single step * fix: cross-platform wheels * fix: Uncomment publishing to PyPI step Co-authored-by: Arthur_Ch <56088401+ArthurChains@users.noreply.github.com>
1 parent c4f751b commit fadcd2e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+551
-571
lines changed

.github/workflows/linux_wheel.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/tests_cpp.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,29 @@ jobs:
2121

2222
# You can define a matrix of different job configurations
2323
matrix:
24-
os: [ubuntu-latest, macos-latest]
24+
os: [macos-latest, ubuntu-latest, windows-latest]
2525

2626
# Steps represent a sequence of tasks that will be executed as part of the job
2727
steps:
2828
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2929
- name: Set up Git repository
3030
uses: actions/checkout@v2
3131

32-
- name: Install boost
33-
run: |
34-
if [ "$RUNNER_OS" == "Linux" ]; then
35-
sudo apt install -y libboost-graph-dev
36-
elif [ "$RUNNER_OS" == "macOS" ]; then
37-
brew install boost
38-
fi
39-
shell: bash
40-
41-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
42-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
32+
- name: Install boost
33+
uses: MarkusJx/install-boost@v2.3.0
34+
id: install-boost
35+
with:
36+
boost_version: 1.72.0
37+
4338
- name: Configure CMake
44-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON
39+
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTS=ON -DBoost_INCLUDE_DIR=${{steps.install-boost.outputs.BOOST_ROOT}}/include -DBoost_LIBRARY_DIRS=${{steps.install-boost.outputs.BOOST_ROOT}}/lib
40+
env:
41+
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
4542

4643
- name: Build
4744
run: cmake --build ${{github.workspace}}/build --config Release
4845

4946
# Run C++ tests executable
5047
- name: Run tests
5148
working-directory: ${{github.workspace}}/build/cpp/tests
52-
run: ctest -C ${{env.BUILD_TYPE}}
49+
run: ctest -C ${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)