diff options
author | Ilya Shipitsin <chipitsine@gmail.com> | 2022-10-22 13:11:48 +0500 |
---|---|---|
committer | Ilya Shipitsin <chipitsine@gmail.com> | 2022-10-22 13:11:48 +0500 |
commit | 5f3868d96ef074dbe5bd19ad822a9209735cb742 (patch) | |
tree | 785781f3653ddf3b8819492d980eedc56321337f | |
parent | bf23b6b37255b232f7768555f4b6dd7153de2dce (diff) | |
download | portable-5f3868d96ef074dbe5bd19ad822a9209735cb742.tar.gz portable-5f3868d96ef074dbe5bd19ad822a9209735cb742.tar.bz2 portable-5f3868d96ef074dbe5bd19ad822a9209735cb742.zip |
CI: enable rust-openssl daily testing
-rw-r--r-- | .github/rust-openssl.patch | 13 | ||||
-rw-r--r-- | .github/workflows/regress.yml | 33 |
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 @@ | |||
1 | diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs | ||
2 | index 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 @@ | |||
1 | name: regress testing | ||
2 | |||
3 | on: | ||
4 | schedule: | ||
5 | - cron: "0 0 * * *" | ||
6 | |||
7 | jobs: | ||
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 | ||