Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Fix Ninja for ARM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Jul 16, 2024
1 parent bc66f38 commit 2f0a2ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ FROM quay.io/pypa/manylinux2014_${TARGET_ARCH}:2024-07-15-c746fd8
ARG BOOST_VERSION=1.85.0
ARG HDF5_VERSION=1.14.2
ARG NINJA_VERSION=1.12.1
# Has to be repeated here so it's imported from the "top level" above the FROM
ARG TARGET_ARCH

ENV HDF5_VERSION=${HDF5_VERSION} \
HDF5_DIR=/usr/local \
Expand All @@ -15,6 +17,7 @@ ENV HDF5_VERSION=${HDF5_VERSION} \

RUN --mount=type=cache,target=/cache \
if [[ "$TARGET_ARCH" == "aarch64" ]]; then NINJA_ARCH="-aarch64"; else NINJA_ARCH=""; fi \
&& echo $NINJA_ARCH \
&& curl -fsSL -o /cache/ninja-linux.zip https://github.com/ninja-build/ninja/releases/download/v${NINJA_VERSION}/ninja-linux${NINJA_ARCH}.zip \
&& unzip /cache/ninja-linux.zip -d /usr/local/bin
COPY install_libaec.sh libaec_cmakelists.patch install_hdf5.sh install_boost.sh /tmp/
Expand Down

0 comments on commit 2f0a2ab

Please sign in to comment.