Skip to content

Commit

Permalink
add workaround for building ring on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Nov 9, 2023
1 parent e534362 commit 50d9371
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ jobs:
run: |
if [ -n "${{ matrix.use_cross }}" ]; then
cargo install --bins --git https://github.com/rust-embedded/cross --tag v${{ env.CROSS_VERSION }} cross
# Required for compatibility with manylinux2014.
# https://github.com/briansmith/ring/issues/1728
if [ "${{ matrix.architecture }}" == "linux-aarch64" ]; then
export CFLAGS_aarch64_unknown_linux_gnu="-D__ARM_ARCH=8"
fi
cross build --lib --release --target ${{ matrix.target }}
elif [ "${{ matrix.architecture }}" == "darwin-universal" ]; then
./build-universal.sh
Expand Down Expand Up @@ -427,6 +432,11 @@ jobs:
- name: Build
run: |
cargo install --bins --git https://github.com/rust-embedded/cross --tag v${{ env.CROSS_VERSION }} cross
# Required for compatibility with manylinux2014.
# https://github.com/briansmith/ring/issues/1728
if [ "${{ matrix.target }}" == "aarch64-linux-android" ]; then
export CFLAGS_aarch64_unknown_linux_gnu="-D__ARM_ARCH=8"
fi
cross build --lib --release --target ${{matrix.target}}
- name: Upload artifacts
Expand Down

0 comments on commit 50d9371

Please sign in to comment.