Skip to content

Commit 9577253

Browse files
committed
also run CI tests with OpenSSL 3.0
... and extend build matrix of libressl. Most of those new libressl build jobs are marked as `continue: true` since either they don't build or they cause memory leaks (3.5/OPENBSD_7_1) The `OPENBSD_X_Y` branches are also marked like that since they will evolve and maybe break at a later point in time. Currently they represent the buildable versions of their respective releases (3.3.6 resp. 3.4.3). Also change CI distro to ubuntu-22.04 as using OpenSSL 3 on 20.04 fails. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
1 parent 357edbd commit 9577253

File tree

2 files changed

+43
-22
lines changed

2 files changed

+43
-22
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,43 @@ jobs:
4242
run: |
4343
cat test-suite*.log || true
4444
45-
libressl-tests:
46-
runs-on: ubuntu-20.04
45+
xssl-tests:
46+
runs-on: ubuntu-22.04
4747
strategy:
4848
matrix:
49-
libressl_versions:
50-
- { version: "v3.4.2", continue: true }
51-
- { version: "v3.1.5", continue: false }
52-
- { version: "v2.1.10", continue: false }
49+
xssl_versions:
50+
- { version: "master", continue: true, libressl: true }
51+
- { version: "OPENBSD_7_1", continue: true, libressl: true }
52+
- { version: "v3.5.2", continue: true, libressl: true }
53+
- { version: "OPENBSD_7_0", continue: true, libressl: true }
54+
- { version: "v3.4.3", continue: true, libressl: true }
55+
- { version: "v3.4.2", continue: true, libressl: true }
56+
- { version: "OPENBSD_6_9", continue: true, libressl: true }
57+
- { version: "v3.1.5", continue: true, libressl: true }
58+
- { version: "v2.1.10", continue: true, libressl: true }
59+
- { version: "openssl-3.0", continue: true, libressl: false }
60+
- { version: "openssl-3.0.4", continue: false, libressl: false }
5361
valgrind:
5462
- { configure: '' , make: 'check' }
5563
- { configure: '--enable-valgrind' , make: 'check-valgrind' }
56-
name: LibreSSL tests
57-
continue-on-error: ${{ matrix.libressl_versions.continue }}
64+
name: xSSL tests
65+
continue-on-error: ${{ matrix.xssl_versions.continue }}
5866
steps:
5967
- uses: actions/checkout@v2
6068
- name: install dependencies
6169
run: |
6270
sudo apt update
6371
sudo apt install -y libtool pkg-config libexpat1-dev valgrind
64-
- name: build&install libressl
72+
- name: build&install the TLS stack
6573
env:
66-
LIBRESSL_COMMIT: ${{ matrix.libressl_versions.version }}
74+
XSSL_COMMITISH: ${{ matrix.xssl_versions.version }}
75+
LIBRESSL: ${{ matrix.xssl_versions.libressl }}
6776
run: |
6877
./travis/before_script.sh
6978
- name: Build the library
7079
run: |
7180
./bootstrap.sh
72-
./configure ${{ matrix.valgrind.configure }} PKG_CONFIG_PATH="${HOME}/libressl/lib/pkgconfig" CFLAGS="-Werror -g3" --prefix="${HOME}/libressl"
81+
./configure ${{ matrix.valgrind.configure }} PKG_CONFIG_PATH="${HOME}/xssl/lib/pkgconfig" CFLAGS="-Werror -g3" --prefix="${HOME}/xssl"
7382
make -j$(nproc)
7483
- name: Run tests
7584
run: |

travis/before_script.sh

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
#!/bin/sh
22

3-
if [ "x$LIBRESSL_COMMIT" != "x" ]; then
4-
cd "$HOME"
5-
git clone https://github.com/libressl-portable/portable.git libressl-git
6-
cd libressl-git
7-
if [ -n "$LIBRESSL_COMMIT" ]; then
8-
git checkout "$LIBRESSL_COMMIT"
9-
fi
10-
./autogen.sh
11-
./configure --prefix="$HOME/libressl"
12-
make -j"$(nproc)"
13-
make install
3+
set -e
4+
5+
[ "x$XSSL_COMMITISH" != "x" ]
6+
7+
if [ "x$LIBRESSL" = "xtrue" ]; then
8+
REPO_URL="https://github.com/libressl-portable/portable.git"
9+
AUTOGEN_CMD="./autogen.sh"
10+
CONFIG_CMD="./configure --prefix=$HOME/xssl"
11+
MAKE_TARGET="install"
12+
else
13+
REPO_URL="https://github.com/openssl/openssl.git"
14+
AUTOGEN_CMD="true"
15+
CONFIG_CMD="./Configure --prefix=$HOME/xssl --libdir=lib"
16+
MAKE_TARGET="install_sw"
1417
fi
18+
19+
cd "$HOME"
20+
git clone --no-checkout "$REPO_URL" xssl-git
21+
cd xssl-git
22+
git checkout "$XSSL_COMMITISH"
23+
$AUTOGEN_CMD
24+
$CONFIG_CMD
25+
make -j"$(nproc)"
26+
make $MAKE_TARGET

0 commit comments

Comments
 (0)