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 6319a12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +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
export CFLAGS_aarch64_unknown_linux_gnu="-D__ARM_ARCH=8"
cross build --lib --release --target ${{ matrix.target }}
elif [ "${{ matrix.architecture }}" == "darwin-universal" ]; then
elif [ "${{ matrix.architecture }}" = "darwin-universal" ]; then
./build-universal.sh
else
cargo build --lib --release --target ${{ matrix.target }}
Expand Down Expand Up @@ -427,6 +430,9 @@ 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
export CFLAGS_aarch64_unknown_linux_gnu="-D__ARM_ARCH=8"
cross build --lib --release --target ${{matrix.target}}
- name: Upload artifacts
Expand Down

0 comments on commit 6319a12

Please sign in to comment.