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

Test cross-compiling to build arm binaries #66

Closed
wants to merge 5 commits into from
Closed
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
4 changes: 4 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.

42 changes: 42 additions & 0 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
BUILD:
- aarch64-conda_cos7-linux-gnu
bzip2:
- '1'
c_compiler:
- gcc
c_compiler_version:
- '11'
cdt_arch:
- aarch64
cdt_name:
- cos7
channel_sources:
- conda-forge,defaults
channel_targets:
- tiledb main
cxx_compiler:
- gxx
cxx_compiler_version:
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libdeflate:
- '1.14'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.7.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
target_platform:
- linux-aarch64
xz:
- '5'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
37 changes: 37 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
bzip2:
- '1'
c_compiler:
- clang
c_compiler_version:
- '14'
channel_sources:
- conda-forge,defaults
channel_targets:
- tiledb main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '14'
libdeflate:
- '1.14'
macos_machine:
- arm64-apple-darwin20.0.0
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
target_platform:
- osx-arm64
xz:
- '5'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
14 changes: 14 additions & 0 deletions README.md

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

3 changes: 3 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
build_platform:
linux_aarch64: linux_64
osx_arm64: osx_64
channels:
sources:
- conda-forge
Expand Down
18 changes: 9 additions & 9 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ channel_sources:
channel_targets:
- tiledb main
numpy:
- 1.20 # [not (osx and arm64)]
- 1.20
- 1.20
# - 1.20 # [not (osx and arm64)]
# - 1.20
# - 1.20
- 1.21
python:
- 3.7.* *_cpython # [not (osx and arm64)]
- 3.8.* *_cpython
- 3.9.* *_cpython
# - 3.7.* *_cpython # [not (osx and arm64)]
# - 3.8.* *_cpython
# - 3.9.* *_cpython
- 3.10.* *_cpython
python_impl:
- cpython # [not (osx and arm64)]
- cpython
- cpython
# - cpython # [not (osx and arm64)]
# - cpython
# - cpython
- cpython
3 changes: 3 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ outputs:
- {{ compiler('cxx') }}
- cmake
- make
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
host:
- {{ pin_compatible('numpy', lower_bound='1.16') }}
- {{ pin_subpackage('libtiledbvcf', exact=True) }}
Expand Down