-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from SINTEFMedtek/0.0.7
0.0.7
- Loading branch information
Showing
47 changed files
with
6,076 additions
and
2,701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Build Ubuntu | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
workflow_dispatch: | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-22.04, ubuntu-20.04 ] | ||
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
libeigen3-dev \ | ||
python3 \ | ||
libpython3-dev \ | ||
python3-pip \ | ||
python3-setuptools | ||
pip install --upgrade pip | ||
pip install patchelf | ||
pip install wheel | ||
pip install auditwheel | ||
- name: Configure CMake | ||
run: | | ||
cmake -B build \ | ||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | ||
-DROMOCC_BUILD_TESTS=ON \ | ||
-DROMOCC_BUILD_EXAMPLES=ON \ | ||
-DROMOCC_BUILD_PYTHON_BINDINGS=ON \ | ||
- name: Build libromocc | ||
run: cmake --build build --config ${{env.BUILD_TYPE}} -j 4 | ||
|
||
- name: Build pyromocc python wheel | ||
run: cmake --build build --config ${{env.BUILD_TYPE}} --target create_python_wheel | ||
|
||
- name: Determine platform | ||
id: determine_platform | ||
run: | | ||
echo platform=$(python3 -c "import distutils.util; print(distutils.util.get_platform().replace('-', '_').replace('.', '_'))") >> $GITHUB_OUTPUT | ||
- name: Auditwheel repair | ||
run: | | ||
auditwheel repair ${{github.workspace}}/build/pyromocc/dist/pyromocc-*.whl --plat ${{ steps.determine_platform.outputs.platform }} -w ${{github.workspace}}/build/pyromocc/dist/wheelhouse | ||
- name: Upload Python wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Python wheel | ||
path: ${{github.workspace}}/build/pyromocc/dist/wheelhouse/pyromocc-*.whl | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build Windows | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
workflow_dispatch: | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
||
strategy: | ||
matrix: | ||
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install wheel | ||
- name: Configure CMake | ||
run: | | ||
cmake ${{github.workspace}} -B ${{github.workspace}}/build ` | ||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ` | ||
-DROMOCC_BUILD_TESTS=OFF ` | ||
-DROMOCC_BUILD_EXAMPLES=OFF ` | ||
-DROMOCC_BUILD_PYTHON_BINDINGS=ON ` | ||
- name: Build libromocc | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 | ||
|
||
- name: Build pyromocc python wheel | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target create_python_wheel | ||
|
||
- name: Upload Python wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Python wheel | ||
path: ${{github.workspace}}/build/pyromocc/dist/pyromocc-*.whl | ||
if-no-files-found: error |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Download and set up Eigen | ||
|
||
include(cmake/Externals.cmake) | ||
|
||
ExternalProject_Add(cxxopts | ||
PREFIX ${ROMOCC_EXTERNAL_BUILD_DIR}/cxxopts | ||
BINARY_DIR ${ROMOCC_EXTERNAL_BUILD_DIR}/cxxopts/build | ||
URL "https://github.com/jarro2783/cxxopts/archive/refs/tags/v3.1.1.tar.gz" | ||
INSTALL_DIR ${ROMOCC_EXTERNAL_INSTALL_DIR} | ||
CMAKE_CACHE_ARGS | ||
-DCMAKE_BUILD_TYPE:STRING=Release | ||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF | ||
-DCMAKE_INSTALL_MESSAGE:BOOL=LAZY | ||
-DCMAKE_INSTALL_PREFIX:STRING=${ROMOCC_EXTERNAL_INSTALL_DIR} | ||
-DBUILD_TESTING:BOOL=OFF | ||
) | ||
|
||
list(APPEND ROMOCC_INCLUDE_DIRS ${ROMOCC_EXTERNAL_INSTALL_DIR}/include/cxxopts/) | ||
list(APPEND ROMOCC_EXTERNAL_DEPENDENCIES cxxopts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
# Download and set up ZeroMQ | ||
|
||
include(cmake/Externals.cmake) | ||
set(ZMQ_VERSION "4.3.2") | ||
|
||
ExternalProject_Add(zeromq | ||
PREFIX ${ROMOCC_EXTERNAL_BUILD_DIR}/zeromq | ||
BINARY_DIR ${ROMOCC_EXTERNAL_BUILD_DIR}/zeromq | ||
GIT_REPOSITORY "https://github.com/zeromq/libzmq.git" | ||
GIT_TAG "v4.3.2" | ||
GIT_TAG "v${ZMQ_VERSION}" | ||
UPDATE_COMMAND "" | ||
CMAKE_ARGS | ||
-DCMAKE_BUILD_TYPE:STRING=Release | ||
-DCMAKE_INSTALL_PREFIX:PATH=${ROMOCC_EXTERNAL_INSTALL_DIR} | ||
-DBUILD_SHARED_LIBS=OFF | ||
-DBUILD_STATIC_LIBS=ON | ||
-DBUILD_PACKAGING=OFF | ||
-DBUILD_TESTING=OFF | ||
-DBUILD_TESTS=OFF | ||
-DBUILD_NC_TESTS=OFF | ||
-DBUILD_CONFIG_TESTS=OFF | ||
-DINSTALL_HEADERS=ON | ||
) | ||
|
||
list(APPEND ROMOCC_INCLUDE_DIRS ${ROMOCC_EXTERNAL_INSTALL_DIR}/include/) | ||
list(APPEND LIBRARIES zmq) | ||
|
||
if(WIN32) | ||
string(REPLACE "." "_" ZMQ_VERSION_US ${ZMQ_VERSION}) | ||
set(ZMQ_LIBRARY | ||
"libzmq-${CMAKE_VS_PLATFORM_TOOLSET}-mt-${ZMQ_VERSION_US}" | ||
"libzmq-${CMAKE_VS_PLATFORM_TOOLSET}-mt-s-${ZMQ_VERSION_US}") | ||
else(WIN32) | ||
set(ZMQ_LIBRARY ${CMAKE_SHARED_LIBRARY_PREFIX}zmq${CMAKE_SHARED_LIBRARY_SUFFIX}) | ||
endif(WIN32) | ||
|
||
list(APPEND LIBRARIES ${ZMQ_LIBRARY}) | ||
list(APPEND ROMOCC_EXTERNAL_DEPENDENCIES zeromq) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.