aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2022-10-22 10:48:44 +0200
committerTheo Buehler <tb@openbsd.org>2022-10-22 10:48:44 +0200
commit4fc98a5f7f105a5f2deba0b8e2e0d0954b7c4714 (patch)
tree785781f3653ddf3b8819492d980eedc56321337f
parentbf23b6b37255b232f7768555f4b6dd7153de2dce (diff)
parent5f3868d96ef074dbe5bd19ad822a9209735cb742 (diff)
downloadportable-4fc98a5f7f105a5f2deba0b8e2e0d0954b7c4714.tar.gz
portable-4fc98a5f7f105a5f2deba0b8e2e0d0954b7c4714.tar.bz2
portable-4fc98a5f7f105a5f2deba0b8e2e0d0954b7c4714.zip
Land 794: run rust-openssl regress in daily CI
-rw-r--r--.github/rust-openssl.patch13
-rw-r--r--.github/workflows/regress.yml33
2 files changed, 46 insertions, 0 deletions
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 @@
1diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs
2index c2aceeec..26e0816a 100644
3--- a/openssl-sys/build/main.rs
4+++ b/openssl-sys/build/main.rs
5@@ -280,7 +280,7 @@ See rust-openssl documentation for more information:
6 (3, 4, 0) => ('3', '4', '0'),
7 (3, 4, _) => ('3', '4', 'x'),
8 (3, 5, _) => ('3', '5', 'x'),
9- _ => version_error(),
10+ _ => ('3', '6', 'x'),
11 };
12
13 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 @@
1name: regress testing
2
3on:
4 schedule:
5 - cron: "0 0 * * *"
6
7jobs:
8 rust-openssl:
9 runs-on: ubuntu-latest
10 steps:
11 - uses: actions/checkout@v3
12 - name: Install apt dependencies
13 run: |
14 sudo apt-get update
15 sudo apt-get install -y cargo
16 - name: Build LibreSSL
17 run: |
18 ./autogen.sh
19 ./configure
20 make dist
21 tar zxvf libressl-*.tar.gz
22 rm libressl-*.tar.gz
23 cd libressl-*
24 ./configure --prefix="${HOME}/opt"
25 make all install
26 - name: run rust-openssl tests
27 run: |
28 git clone https://github.com/sfackler/rust-openssl.git
29 cd rust-openssl
30 export OPENSSL_DIR=${HOME}/opt
31 export LD_LIBRARY_PATH=${HOME}/opt/lib
32 patch -p1 < ../.github/rust-openssl.patch
33 cargo test