Land 794: run rust-openssl regress in daily CI
This commit is contained in:
commit
4fc98a5f7f
13
.github/rust-openssl.patch
vendored
Normal file
13
.github/rust-openssl.patch
vendored
Normal file
@ -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");
|
33
.github/workflows/regress.yml
vendored
Normal file
33
.github/workflows/regress.yml
vendored
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user