mirror of
https://github.com/libressl/portable.git
synced 2026-01-17 21:51:17 +01:00
In the GitHub Actions workflow for rust-openssl testing, apply the patch used in OpenBSD ports to support EVP_PKEY_get1_* APIs with const_ptr. This ensures that the build succeeds before the official version bump to libressl420. This is a temporary workaround to keep the tests passing until 4.2.0 release. Fix https://github.com/libressl/portable/issues/1187
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
# GitHub Actions workflow to run rust-openssl regress tests.
|
|
name: "rust-openssl"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *" # At 00:00 daily.
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: "Test"
|
|
runs-on: "ubuntu-24.04"
|
|
if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }}
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: "Checkout repository"
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "Build LibreSSL"
|
|
run: |
|
|
./autogen.sh
|
|
./configure --prefix="${HOME}/opt"
|
|
make all install
|
|
|
|
- name: "Clone rust-openssl"
|
|
run: |
|
|
git clone https://github.com/sfackler/rust-openssl.git
|
|
|
|
- name: "Run rust-openssl tests"
|
|
run: |
|
|
cd rust-openssl
|
|
|
|
# apply patch - see #1187
|
|
curl -L https://raw.githubusercontent.com/openbsd/ports/refs/heads/master/security/rust-openssl-tests/patches/patch-openssl-sys_src_handwritten_evp_rs | patch -p0
|
|
|
|
# instead of erroring use the last supported version
|
|
ed -s openssl-sys/build/main.rs <<-EOF
|
|
/_ => version_error/-1
|
|
.t.
|
|
s/(.*=/_ =
|
|
+1d
|
|
w
|
|
q
|
|
EOF
|
|
export OPENSSL_DIR=${HOME}/opt LD_LIBRARY_PATH=${HOME}/opt/lib
|
|
cargo test --verbose
|