Commit 9408aea 1 parent e534362 commit 9408aea Copy full SHA for 9408aea
File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,11 @@ jobs:
164
164
run : |
165
165
if [ -n "${{ matrix.use_cross }}" ]; then
166
166
cargo install --bins --git https://github.com/rust-embedded/cross --tag v${{ env.CROSS_VERSION }} cross
167
+ # Required for compatibility with manylinux2014.
168
+ # https://github.com/briansmith/ring/issues/1728
169
+ if [ "${{ matrix.architecture }}" = "linux-aarch64" ]; then
170
+ export CFLAGS="-D__ARM_ARCH=8"
171
+ fi
167
172
cross build --lib --release --target ${{ matrix.target }}
168
173
elif [ "${{ matrix.architecture }}" == "darwin-universal" ]; then
169
174
./build-universal.sh
@@ -427,6 +432,11 @@ jobs:
427
432
- name : Build
428
433
run : |
429
434
cargo install --bins --git https://github.com/rust-embedded/cross --tag v${{ env.CROSS_VERSION }} cross
435
+ # Required for compatibility with manylinux2014:
436
+ # https://github.com/briansmith/ring/issues/1728
437
+ if [ "${{ matrix.target }}" = "aarch64-linux-android" ]; then
438
+ export CFLAGS="-D__ARM_ARCH=8"
439
+ fi
430
440
cross build --lib --release --target ${{matrix.target}}
431
441
432
442
- name : Upload artifacts
Original file line number Diff line number Diff line change
1
+ [build .env ]
2
+ passthrough = [" CFLAGS" ]
3
+
1
4
[target .aarch64-unknown-linux-gnu ]
2
5
image = " ghcr.io/rust-cross/manylinux2014-cross:aarch64"
3
6
You can’t perform that action at this time.
0 commit comments