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

ARM OSX Migrator #32

Merged
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
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.

40 changes: 40 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
c_compiler:
- clang
c_compiler_version:
- '15'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '15'
fmt:
- '9'
libopencv:
- 4.7.0
libosqp:
- 0.6.3
macos_machine:
- arm64-apple-darwin20.0.0
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
pybind11_abi:
- '4'
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
spdlog:
- '1.11'
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.

7 changes: 7 additions & 0 deletions README.md

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

9 changes: 6 additions & 3 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
build_platform:
osx_arm64: osx_64
conda_build:
pkg_format: '2'
conda_forge_output_validation: true
github:
branch_name: main
tooling_branch_name: main
conda_forge_output_validation: true
conda_build:
pkg_format: '2'
test: native_and_emulated
10 changes: 8 additions & 2 deletions recipe/build_cxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ if [[ "${target_platform}" == osx-* ]]; then
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
fi

if [[ "${CONDA_BUILD_CROSS_COMPILATION}" == "1" ]]; then
export CMAKE_ARGS="${CMAKE_ARGS} -DYARPIDL_thrift_LOCATION=$BUILD_PREFIX/bin/yarpidl_thrift -DYARPIDL_rosmsg_LOCATION=$BUILD_PREFIX/bin/yarpidl_rosmsg"
fi

rm -rf build
mkdir -p build

Expand All @@ -31,5 +35,7 @@ cat CMakeCache.txt
cmake --build . --config Release
cmake --build . --config Release --target install

# QPInverseKinematicsUnitTests excluded as a workaround for https://github.com/conda-forge/bipedal-locomotion-framework-feedstock/issues/29
ctest --output-on-failure -E QPInverseKinematicsUnitTests -C Release
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" != "1" || "${CROSSCOMPILING_EMULATOR:-}" != "" ]]; then
# QPInverseKinematicsUnitTests excluded as a workaround for https://github.com/conda-forge/bipedal-locomotion-framework-feedstock/issues/29
ctest --output-on-failure -E QPInverseKinematicsUnitTests -C Release
fi
10 changes: 6 additions & 4 deletions recipe/build_py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ cmake ${CMAKE_ARGS} -GNinja .. \
ninja -v
cmake --build . --config Release --target install

# Tests are not installed, so we run them during the build
# We run them directly via pytest so we detect if we are not compiling some required components
cd ..
pytest -v -k "not (test_load_from_file or test_fixed_foot_detector)"
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" != "1" || "${CROSSCOMPILING_EMULATOR:-}" != "" ]]; then
# Tests are not installed, so we run them during the build
# We run them directly via pytest so we detect if we are not compiling some required components
cd ..
pytest -v -k "not (test_load_from_file or test_fixed_foot_detector)"
fi
2 changes: 2 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ outputs:
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxext') }} # [linux]
# YARP idl tools are used in this recipe
- yarp-cxx # [build_platform != target_platform]
host:
- eigen
- idyntree
Expand Down