From 5f3868d96ef074dbe5bd19ad822a9209735cb742 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 22 Oct 2022 13:11:48 +0500 Subject: CI: enable rust-openssl daily testing --- .github/rust-openssl.patch | 13 +++++++++++++ .github/workflows/regress.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/rust-openssl.patch create mode 100644 .github/workflows/regress.yml diff --git a/.github/rust-openssl.patch b/.github/rust-openssl.patch new file mode 100644 index 0000000..8d8bde2 --- /dev/null +++ b/.github/rust-openssl.patch @@ -0,0 +1,13 @@ +diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs +index c2aceeec..26e0816a 100644 +--- a/openssl-sys/build/main.rs ++++ b/openssl-sys/build/main.rs +@@ -280,7 +280,7 @@ See rust-openssl documentation for more information: + (3, 4, 0) => ('3', '4', '0'), + (3, 4, _) => ('3', '4', 'x'), + (3, 5, _) => ('3', '5', 'x'), +- _ => version_error(), ++ _ => ('3', '6', 'x'), + }; + + println!("cargo:libressl=true"); diff --git a/.github/workflows/regress.yml b/.github/workflows/regress.yml new file mode 100644 index 0000000..88ce310 --- /dev/null +++ b/.github/workflows/regress.yml @@ -0,0 +1,33 @@ +name: regress testing + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + rust-openssl: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install apt dependencies + run: | + sudo apt-get update + sudo apt-get install -y cargo + - name: Build LibreSSL + run: | + ./autogen.sh + ./configure + make dist + tar zxvf libressl-*.tar.gz + rm libressl-*.tar.gz + cd libressl-* + ./configure --prefix="${HOME}/opt" + make all install + - name: run rust-openssl tests + run: | + git clone https://github.com/sfackler/rust-openssl.git + cd rust-openssl + export OPENSSL_DIR=${HOME}/opt + export LD_LIBRARY_PATH=${HOME}/opt/lib + patch -p1 < ../.github/rust-openssl.patch + cargo test -- cgit v1.2.3-55-g6feb