@@ -153,7 +153,7 @@ jobs:
153
153
- false
154
154
library :
155
155
- name : boringssl
156
- version : 5697a9202615925696f8dc7f4e286d44d474769e
156
+ version : 93e8d4463d59d671e9c5c6171226341f04b07907
157
157
- name : openssl
158
158
version : vendored
159
159
- name : openssl
@@ -215,10 +215,6 @@ jobs:
215
215
library :
216
216
name : libressl
217
217
version : 3.7.0
218
- exclude :
219
- - library :
220
- name : boringssl
221
- bindgen : true
222
218
name : ${{ matrix.target }}-${{ matrix.library.name }}-${{ matrix.library.version }}-${{ matrix.bindgen }}
223
219
runs-on : ubuntu-latest
224
220
env :
@@ -311,24 +307,20 @@ jobs:
311
307
make install_sw
312
308
;;
313
309
"boringssl")
314
- sed -i rust/CMakeLists.txt -e '1s%^%include_directories(../include)\n%'
315
- cpu=`echo ${{ matrix.target }} | cut -d - -f 1`
316
- echo "set(CMAKE_SYSTEM_NAME Linux)" > toolchain.cmake
317
- echo "set(CMAKE_SYSTEM_PROCESSOR $cpu)" >> toolchain.cmake
318
- echo "set(triple ${{ matrix.target }})" >> toolchain.cmake
319
- echo 'set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} '$OS_FLAGS '" CACHE STRING "c++ flags")' >> toolchain.cmake
320
- echo 'set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} '$OS_FLAGS '" CACHE STRING "c flags")' >> toolchain.cmake
321
- echo 'set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} '$OS_FLAGS '" CACHE STRING "asm flags")' >> toolchain.cmake
322
- cmake -DRUST_BINDINGS="${{ matrix.target }}" -B $OPENSSL_DIR -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake
323
- make -C $OPENSSL_DIR
310
+ mkdir build
311
+ cd build
312
+ cmake .. -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DRUST_BINDINGS="${{ matrix.target }}" -DCMAKE_INSTALL_PREFIX="${OPENSSL_DIR}"
313
+ make -j "$(nproc)"
314
+ make install
315
+ cp -r rust/ "$OPENSSL_DIR/rust"
324
316
esac
325
317
326
318
if : matrix.library.version != 'vendored' && !steps.openssl-cache.outputs.cache-hit
327
319
- run : |
328
320
mkdir -p .cargo
329
321
echo '[patch.crates-io]' > .cargo/config.toml
330
322
echo 'bssl-sys = { path = "'$OPENSSL_DIR'/rust" }' >> .cargo/config.toml
331
- if: matrix.library.name == 'boringssl'
323
+ if: matrix.library.name == 'boringssl' && !matrix.bindgen
332
324
- uses : actions/cache@v1
333
325
with :
334
326
path : ~/.cargo/registry/index
@@ -350,21 +342,25 @@ jobs:
350
342
if [[ "${{ matrix.library.version }}" == "vendored" ]]; then
351
343
features="--features vendored"
352
344
fi
353
- if [[ "${{ matrix.bindgen }}" == "true" ]]; then
345
+ if [[ "${{ matrix.bindgen }}" == "true" && "${{ matrix.library.name }}" != "boringssl" ]]; then
354
346
features="$features --features bindgen"
355
347
fi
356
348
cargo run --manifest-path=systest/Cargo.toml --target ${{ matrix.target }} $features
357
349
if : matrix.library.name != 'boringssl'
358
350
- name : Test openssl
359
351
run : |
360
- if [[ "${{ matrix.library.name }}" == "boringssl" ]]; then
361
- features="--features unstable_boringssl"
362
- fi
363
- if [[ "${{ matrix.library.version }}" == "vendored" ]]; then
364
- features="--features vendored"
365
- fi
366
- if [[ "${{ matrix.bindgen }}" == "true" ]]; then
367
- features="$features --features bindgen"
352
+ if [[ "${{ matrix.library.name }}" == "boringssl" && "${{ matrix.bindgen }}" == "true" ]]; then
353
+ features="--features unstable_boringssl_bindgen"
354
+ else
355
+ if [[ "${{ matrix.library.name }}" == "boringssl" ]]; then
356
+ features="--features unstable_boringssl"
357
+ fi
358
+ if [[ "${{ matrix.library.version }}" == "vendored" ]]; then
359
+ features="--features vendored"
360
+ fi
361
+ if [[ "${{ matrix.bindgen }}" == "true" ]]; then
362
+ features="$features --features bindgen"
363
+ fi
368
364
fi
369
365
cargo test --manifest-path=openssl/Cargo.toml --target ${{ matrix.target }} $features
370
366
- name : Test openssl-errors
0 commit comments