Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add builds for linux-aarch64, linux-ppc64le and osx-arm64 #1

Merged
merged 8 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
BUILD:
- aarch64-conda_cos7-linux-gnu
c_compiler:
- gcc
c_compiler_version:
- '13'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_arch:
- aarch64
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
gsl:
- '2.7'
ipopt:
- 3.14.16
libcblas:
- 3.9 *netlib
libopencv:
- 4.10.0
libyarp:
- 3.9.0
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.9.* *_cpython
qt_main:
- '5.15'
target_platform:
- linux-aarch64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
48 changes: 48 additions & 0 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
c_compiler:
- gcc
c_compiler_version:
- '13'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
gsl:
- '2.7'
ipopt:
- 3.14.16
libcblas:
- 3.9 *netlib
libopencv:
- 4.10.0
libyarp:
- 3.9.0
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.9.* *_cpython
qt_main:
- '5.15'
target_platform:
- linux-ppc64le
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
39 changes: 39 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '11.0'
c_compiler:
- clang
c_compiler_version:
- '17'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '11.0'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '17'
gsl:
- '2.7'
ipopt:
- 3.14.16
libcblas:
- 3.9 *netlib
libopencv:
- 4.10.0
libyarp:
- 3.9.0
macos_machine:
- arm64-apple-darwin20.0.0
qt_main:
- '5.15'
target_platform:
- osx-arm64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
3 changes: 3 additions & 0 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ github:
conda_build:
error_overlinking: true
conda_forge_output_validation: true
build_platform:
linux_aarch64: linux_64
linux_ppc64le: linux_64
osx_arm64: osx_64
test: native_and_emulated
5 changes: 5 additions & 0 deletions recipe/build_cxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ rm -rf build
mkdir build
cd build

# When cross-compiling use the yarpidl_thrift from the build environment
if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then
export CMAKE_ARGS="${CMAKE_ARGS} -DYARPIDL_thrift_LOCATION=$BUILD_PREFIX/bin/yarpidl_thrift"
fi

if [[ "${target_platform}" == linux-* ]]; then
export ICUB_MAIN_ON_LINUX=ON
else
Expand Down
4 changes: 3 additions & 1 deletion recipe/build_py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ rm -rf build
mkdir build
cd build

# Workaround for SP_DIR value that somestimes as of October 2024 seems wrong
Python_SP_DIR="$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')"
cmake ${CMAKE_ARGS} -GNinja .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS:BOOL=ON \
Expand All @@ -14,7 +16,7 @@ cmake ${CMAKE_ARGS} -GNinja .. \
-DCREATE_RUBY:BOOL=OFF \
-DCREATE_JAVA:BOOL=OFF \
-DCREATE_CSHARP:BOOL=OFF \
-DCMAKE_INSTALL_PYTHONDIR:PATH=${SP_DIR}
-DCMAKE_INSTALL_PYTHONDIR:PATH=${Python_SP_DIR}

ninja -v
cmake --build . --config Release --target install
5 changes: 4 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source:
- 985.patch

build:
number: 0
number: 1

outputs:
- name: libicub-main
Expand All @@ -29,6 +29,9 @@ outputs:
- pkg-config
- ninja
- multisheller
# yarp_idl_thrift is used in this recipe, so during
# cross-compilation we need to install it in the build env
- libyarp # [build_platform != target_platform]
host:
- ycm-cmake-modules
- ace
Expand Down
Loading