mirror of
https://github.com/libssh2/libssh2.git
synced 2026-01-06 14:21:57 +03:00
ci: mbedtls 3.5.0
v3.5.0 needs extra compiler option for i386 to avoid: ``` #error "Must use `-mpclmul -msse2 -maes` for MBEDTLS_AESNI_C" ``` Closes #1202
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -108,12 +108,16 @@ jobs:
|
||||
- name: 'install mbedTLS from source'
|
||||
if: ${{ matrix.crypto == 'mbedTLS' }}
|
||||
run: |
|
||||
MBEDTLSVER=mbedtls-3.4.1
|
||||
MBEDTLSVER=mbedtls-3.5.0
|
||||
curl -L https://github.com/Mbed-TLS/mbedtls/archive/$MBEDTLSVER.tar.gz | tar -xzf -
|
||||
cd mbedtls-$MBEDTLSVER
|
||||
[ '${{ matrix.arch }}' = 'i386' ] && crossoptions='-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }} -DCMAKE_C_FLAGS=-m32'
|
||||
if [ '${{ matrix.arch }}' = 'i386' ]; then
|
||||
crossoptions='-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }}'
|
||||
cflags='-m32 -mpclmul -msse2 -maes'
|
||||
fi
|
||||
cmake --version
|
||||
cmake ${crossoptions} \
|
||||
"-DCMAKE_C_FLAGS=${cflags}" \
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=../usr
|
||||
make -j3 install
|
||||
|
||||
Reference in New Issue
Block a user