Skip to content

Commit 45546b4

Browse files
committed
Run wget-v1.21.4 and openldap-v2.6.7 on native ubuntu:24.04 instead of
debian:bookworm
1 parent 9d1ede5 commit 45546b4

2 files changed

Lines changed: 58 additions & 34 deletions

File tree

.github/workflows/openldap.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,65 @@
11
name: OpenLDAP Test
2-
32
# START OF COMMON SECTION
43
on:
54
push:
65
branches: [ 'master', 'main', 'release/**' ]
76
pull_request:
87
branches: [ '*' ]
9-
108
concurrency:
119
group: ${{ github.workflow }}-${{ github.ref }}
1210
cancel-in-progress: true
1311
# END OF COMMON SECTION
14-
1512
jobs:
1613
build_gnutls:
1714
name: Build wolfSSL, GnuTLS and provider
1815
timeout-minutes: 30
1916
strategy:
2017
matrix:
21-
os: [ ubuntu-latest ]
22-
openldap_ref: [ 'master', 'OPENLDAP_REL_ENG_2_5_13', 'OPENLDAP_REL_ENG_2_6_7', 'OPENLDAP_REL_ENG_2_6_9' ]
18+
include:
19+
- os: ubuntu-latest
20+
openldap_ref: 'master'
21+
use_container: true
22+
- os: ubuntu-latest
23+
openldap_ref: 'OPENLDAP_REL_ENG_2_5_13'
24+
use_container: true
25+
- os: ubuntu-24.04
26+
openldap_ref: 'OPENLDAP_REL_ENG_2_6_7'
27+
use_container: false
28+
- os: ubuntu-latest
29+
openldap_ref: 'OPENLDAP_REL_ENG_2_6_9'
30+
use_container: true
2331
fail-fast: false
2432
runs-on: ${{ matrix.os }}
25-
container:
26-
image: debian:bookworm
27-
33+
container: ${{ matrix.use_container && 'debian:bookworm' || '' }}
2834
steps:
2935
- name: Checkout gnutls-wolfssl repository
3036
uses: actions/checkout@v4
31-
32-
- name: Ensure make available (Ubuntu only)
33-
if: matrix.os == 'ubuntu-latest'
37+
- name: Ensure make available
38+
if: matrix.use_container == true
3439
run: |
3540
apt-get update
3641
apt-get install -y build-essential
37-
38-
- name: Install GnuTLS dependencies (Ubuntu only)
39-
if: matrix.os == 'ubuntu-latest'
42+
- name: Install GnuTLS dependencies
43+
if: matrix.use_container == true
4044
run: |
4145
apt-get install -y gnulib autopoint gperf gtk-doc-tools nettle-dev clang \
4246
libtasn1-bin libtasn1-6-dev libunistring-dev libp11-kit-dev libunbound-dev sudo \
43-
git wget
47+
git wget automake libtool
4448
45-
- name: Install OpenLDAP dependencies (Ubuntu only)
46-
if: matrix.os == 'ubuntu-latest'
49+
- name: Install OpenLDAP dependencies
50+
if: matrix.use_container == true
4751
run: |
4852
sudo apt-get install -y libsasl2-dev libsasl2-modules libsasl2-modules-gssapi-mit \
4953
libargon2-dev groff-base libltdl-dev
5054
55+
- name: Install dependencies on native Ubuntu
56+
if: matrix.use_container == false
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install -y build-essential gnulib autopoint gperf gtk-doc-tools nettle-dev clang \
60+
libtasn1-bin libtasn1-6-dev libunistring-dev libp11-kit-dev libunbound-dev \
61+
git wget libsasl2-dev libsasl2-modules libsasl2-modules-gssapi-mit \
62+
libargon2-dev groff-base libltdl-dev automake libtool
5163
# ───────────── cache the wolfssl/gnutls tool-chain ─────────────
5264
- name: Restore cached gnutls-wolfssl
5365
id: cache-gnutls
@@ -60,27 +72,23 @@ jobs:
6072
key: gnutls-wolfssl-${{ runner.os }}-${{ hashFiles('setup.sh', 'wolfssl-gnutls-wrapper/**', 'wolfssl/**', 'gnutls/**') }}
6173
restore-keys: |
6274
gnutls-wolfssl-${{ runner.os }}-
63-
6475
- name: Build GnuTLS with wolfSSL provider using setup.sh script
6576
if: steps.cache-gnutls.outputs.cache-hit != 'true'
6677
run: |
6778
echo "Running setup.sh..."
6879
GNUTLS_INSTALL=/opt/gnutls WOLFSSL_INSTALL=/opt/wolfssl ./setup.sh
69-
7080
- name: Check setup.sh output directories
7181
run: |
7282
test -d /opt/wolfssl || { echo "/opt/wolfssl missing"; exit 1; }
7383
test -d /opt/gnutls || { echo "/opt/gnutls missing"; exit 1; }
7484
test -d /opt/wolfssl-gnutls-wrapper/lib || { echo "/opt/wolfssl-gnutls-wrapper/lib missing"; exit 1; }
75-
7685
- name: Build OpenLDAP at ${{ matrix.openldap_ref }}
7786
run: |
7887
git clone https://git.openldap.org/openldap/openldap.git
7988
cd openldap
8089
if [ "${{ matrix.openldap_ref }}" != "master" ]; then
8190
git checkout ${{ matrix.openldap_ref }}
8291
fi
83-
8492
- name: Configure OpenLDAP
8593
working-directory: openldap
8694
run: |
@@ -97,13 +105,11 @@ jobs:
97105
--enable-remoteauth \
98106
--prefix=/opt/openldap \
99107
--enable-modules
100-
101108
- name: Build OpenLDAP
102109
working-directory: openldap
103110
run: |
104111
make depend
105112
make
106-
107113
- name: Test OpenLDAP
108114
working-directory: openldap
109115
run: |

.github/workflows/wget.yml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,53 @@ jobs:
1818
timeout-minutes: 20
1919
strategy:
2020
matrix:
21-
os: [ ubuntu-latest ]
22-
wget_ref: [ 'master', 'v1.21.3', 'v1.21.4', 'v1.24.5' ]
21+
include:
22+
- os: ubuntu-latest
23+
wget_ref: 'master'
24+
use_container: true
25+
- os: ubuntu-latest
26+
wget_ref: 'v1.21.3'
27+
use_container: true
28+
- os: ubuntu-24.04
29+
wget_ref: 'v1.21.4'
30+
use_container: false
31+
- os: ubuntu-latest
32+
wget_ref: 'v1.24.5'
33+
use_container: true
2334
fail-fast: false
2435
runs-on: ${{ matrix.os }}
25-
container:
26-
image: debian:bookworm
36+
container: ${{ matrix.use_container && 'debian:bookworm' || '' }}
2737

2838
steps:
2939
- name: Checkout gnutls-wolfssl repository
3040
uses: actions/checkout@v4
3141

32-
- name: Ensure make available (Ubuntu only)
33-
if: matrix.os == 'ubuntu-latest'
42+
- name: Ensure make available
43+
if: matrix.use_container == true
3444
run: |
3545
apt-get update
3646
apt-get install -y build-essential
3747
38-
- name: Install GnuTLS dependencies (Ubuntu only)
39-
if: matrix.os == 'ubuntu-latest'
48+
- name: Install GnuTLS dependencies
49+
if: matrix.use_container == true
4050
run: |
4151
apt-get install -y gnulib autopoint gperf gtk-doc-tools nettle-dev clang \
4252
libtasn1-bin libtasn1-6-dev libunistring-dev libp11-kit-dev libunbound-dev \
4353
sudo wget git flex
4454
45-
- name: Install wget dependencies (Ubuntu only)
46-
if: matrix.os == 'ubuntu-latest'
55+
- name: Install wget dependencies
56+
if: matrix.use_container == true
4757
run: |
4858
sudo apt-get install -y autoconf-archive libhttp-daemon-perl
4959
60+
- name: Install dependencies on native Ubuntu
61+
if: matrix.use_container == false
62+
run: |
63+
sudo apt-get update
64+
sudo apt-get install -y build-essential gnulib autopoint gperf gtk-doc-tools nettle-dev clang \
65+
libtasn1-bin libtasn1-6-dev libunistring-dev libp11-kit-dev libunbound-dev \
66+
wget git flex autoconf-archive libhttp-daemon-perl
67+
5068
# ───────────── cache the wolfssl/gnutls tool-chain ─────────────
5169
- name: Restore cached gnutls-wolfssl
5270
id: cache-gnutls
@@ -102,7 +120,7 @@ jobs:
102120
103121
# Get python 3.11 for old versions of wget
104122
- name: Install pyenv dependencies
105-
if: matrix.wget_ref == 'v1.21.3'
123+
if: matrix.wget_ref == 'v1.21.3' || matrix.wget_ref == 'v1.21.4'
106124
run: |
107125
sudo apt-get update
108126
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \

0 commit comments

Comments
 (0)