Skip to content

Commit

Permalink
Cross-Platform Wheels (#25)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
achains and achains committed May 27, 2022
1 parent c4f751b commit fadcd2e
Show file tree
Hide file tree
Showing 95 changed files with 551 additions and 571 deletions.
88 changes: 0 additions & 88 deletions .github/workflows/linux_wheel.yml

This file was deleted.

25 changes: 11 additions & 14 deletions .github/workflows/tests_cpp.yml
Expand Up @@ -21,32 +21,29 @@ jobs:

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

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

- name: Install boost
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install -y libboost-graph-dev
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install boost
fi
shell: bash

# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
- name: Install boost
uses: MarkusJx/install-boost@v2.3.0
id: install-boost
with:
boost_version: 1.72.0

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON
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
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}

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

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

0 comments on commit fadcd2e

Please sign in to comment.