Skip to content

Commit 81f11ef

Browse files
ffgansylvestre
authored andcommitted
fix s390x build error
Co-authored by: [email protected]; Signed-off-by: ffgan <[email protected]>
1 parent e075103 commit 81f11ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,14 @@ jobs:
277277
toolchain: ${{ matrix.target == 'aarch64-apple-darwin' && 'beta' || 'stable' }}
278278
target: ${{ matrix.target }}
279279
if: ${{ !matrix.container }}
280+
281+
- name: fix build openssl error on s390x
282+
if: ${{ matrix.target == 's390x-unknown-linux-musl' }}
283+
run: |
284+
# see https://github.com/openssl/openssl/issues/27323
285+
echo CFLAGS="-march=z10 -mzarch" >> $GITHUB_ENV
286+
echo CXXFLAGS="$CFLAGS" >> $GITHUB_ENV
287+
echo RUSTFLAGS="-C target-cpu=z10" >> $GITHUB_ENV
280288
281289
- name: Build
282290
run: cargo build --locked --release --bin ${{ matrix.binary || 'sccache' }} --target ${{ matrix.target }} --features=openssl/vendored ${{ matrix.extra_args }}

0 commit comments

Comments
 (0)