CI script improvements

* ensure make -j is called everywhere
* shallow clones where possible
* set fixed ubuntu version for linux tests
This commit is contained in:
Tobias Frauenschläger
2026-04-07 16:12:59 +02:00
parent 062ef3e93b
commit 585a1ecaaf
38 changed files with 61 additions and 17 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
build:
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
+1 -1
View File
@@ -77,7 +77,7 @@ concurrency:
jobs:
build:
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
- name: Build async examples (no configure)
run: |
make -C examples/async clean
make -C examples/async ASYNC_MODE=${{ matrix.async_mode }} EXTRA_CFLAGS="${{ matrix.extra_cflags }}"
make -j -C examples/async ASYNC_MODE=${{ matrix.async_mode }} EXTRA_CFLAGS="${{ matrix.extra_cflags }}"
- name: Run async examples
run: |
+2
View File
@@ -76,6 +76,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout bind9
uses: actions/checkout@v4
@@ -83,6 +84,7 @@ jobs:
repository: isc-projects/bind9
path: bind
ref: v${{ matrix.ref }}
fetch-depth: 1
- name: Build and test bind9
working-directory: bind
+1 -1
View File
@@ -9,7 +9,7 @@ on:
jobs:
build:
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
# pull wolfSSL
+1 -1
View File
@@ -9,7 +9,7 @@ on:
jobs:
build:
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
# pull wolfSSL
+2
View File
@@ -77,6 +77,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout sasl
uses: actions/checkout@v4
@@ -84,6 +85,7 @@ jobs:
repository: cyrusimap/cyrus-sasl
ref: cyrus-sasl-${{ matrix.ref }}
path: sasl
fetch-depth: 1
- name: Build cyrus-sasl
working-directory: sasl
+2 -2
View File
@@ -16,7 +16,7 @@ jobs:
gencertbuf:
name: gencertbuf
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
# This should be a safe limit for the tests to run.
timeout-minutes: 6
steps:
@@ -30,7 +30,7 @@ jobs:
run: |
./autogen.sh
./configure --enable-all --enable-experimental --enable-dilithium --enable-kyber
make
make -j
./wolfcrypt/test/testwolfcrypt
- name: Print errors
+2
View File
@@ -91,6 +91,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout grpc
uses: actions/checkout@v4
@@ -98,6 +99,7 @@ jobs:
repository: grpc/grpc
path: grpc
ref: ${{ matrix.ref }}
fetch-depth: 1
- name: Build grpc
working-directory: ./grpc
+1
View File
@@ -83,6 +83,7 @@ jobs:
repository: haproxy/haproxy
ref: ${{matrix.haproxy_ref}}
path: build-dir/haproxy-${{matrix.haproxy_ref}}
fetch-depth: 1
- name: Build haproxy
working-directory: build-dir/haproxy-${{matrix.haproxy_ref}}
+2
View File
@@ -117,6 +117,7 @@ jobs:
repository: torvalds/linux
path: linux
ref: ${{ env.LINUX_REF }}
fetch-depth: 1
- name: Compile linux
if: steps.cache.outputs.cache-hit != 'true'
@@ -246,6 +247,7 @@ jobs:
repository: wolfssl/osp
path: osp
ref: ${{ matrix.config.osp_ref }}
fetch-depth: 1
- if: ${{ matrix.config.osp_ref }}
name: Apply patch files
+1
View File
@@ -73,6 +73,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Build ipmitool
uses: wolfSSL/actions-build-autotools-project@v1
+2
View File
@@ -83,6 +83,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout jwt-cpp
uses: actions/checkout@v4
@@ -90,6 +91,7 @@ jobs:
repository: Thalhammer/jwt-cpp
path: jwt-cpp
ref: v${{ matrix.config.ref }}
fetch-depth: 1
- name: Build pam-ipmi
working-directory: jwt-cpp
+2
View File
@@ -68,6 +68,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout krb5
uses: actions/checkout@v4
@@ -75,6 +76,7 @@ jobs:
repository: krb5/krb5
ref: krb5-${{ matrix.ref }}-final
path: krb5
fetch-depth: 1
- name: Apply patch
working-directory: ./krb5
+2
View File
@@ -64,6 +64,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout libspdm
uses: actions/checkout@v4
@@ -71,6 +72,7 @@ jobs:
repository: DMTF/libspdm
path: libspdm
ref: ${{ matrix.ref }}
fetch-depth: 1
- name: Build and test libspdm
working-directory: libspdm
+1
View File
@@ -66,6 +66,7 @@ jobs:
repository: libssh2/libssh2
ref: libssh2-${{ matrix.ref }}
path: libssh2
fetch-depth: 1
- name: Update libssh2 test to use a stable version of debian
working-directory: libssh2
+2
View File
@@ -68,6 +68,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout libvncserver
uses: actions/checkout@v4
@@ -75,6 +76,7 @@ jobs:
repository: LibVNC/libvncserver
path: libvncserver
ref: LibVNCServer-${{ matrix.ref }}
fetch-depth: 1
- name: Build libvncserver
working-directory: libvncserver
+3 -2
View File
@@ -19,7 +19,7 @@ jobs:
build_mbedtls:
name: Build mbedtls
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
# This should be a safe limit for the tests to run.
timeout-minutes: 10
steps:
@@ -38,6 +38,7 @@ jobs:
repository: Mbed-TLS/mbedtls
ref: ${{ env.MBED_REF }}
path: mbedtls
fetch-depth: 1
- name: Compile mbedtls
if: steps.cache.outputs.cache-hit != 'true'
@@ -55,7 +56,7 @@ jobs:
mbedtls_test:
name: Test interop with mbedtls
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: build_mbedtls
timeout-minutes: 10
steps:
+2
View File
@@ -70,6 +70,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Install dependencies
uses: ./.github/actions/install-apt-deps
@@ -82,6 +83,7 @@ jobs:
repository: memcached/memcached
ref: 1.6.22
path: memcached
fetch-depth: 1
- name: Configure and build memcached
run: |
+4 -2
View File
@@ -69,6 +69,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Install dependencies
uses: ./.github/actions/install-apt-deps
@@ -81,6 +82,7 @@ jobs:
repository: eclipse/mosquitto
ref: v${{ matrix.ref }}
path: mosquitto
fetch-depth: 1
- name: Update certs
run: |
@@ -92,7 +94,7 @@ jobs:
run: |
cd $GITHUB_WORKSPACE/mosquitto/
patch -p1 < $GITHUB_WORKSPACE/osp/mosquitto/${{ matrix.ref }}.patch
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir
make -j WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir
- name: Run mosquitto tests
working-directory: ./mosquitto
@@ -100,7 +102,7 @@ jobs:
# Retry up to five times
for i in {1..5}; do
TEST_RES=0
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest || TEST_RES=$?
make -j WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest || TEST_RES=$?
if [ "$TEST_RES" -eq "0" ]; then
break
fi
+2
View File
@@ -69,6 +69,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Install dependencies
uses: ./.github/actions/install-apt-deps
@@ -81,6 +82,7 @@ jobs:
repository: marlam/msmtp
ref: msmtp-${{ matrix.ref }}
path: msmtp-${{ matrix.ref }}
fetch-depth: 1
- name: Apply wolfSSL patch
working-directory: msmtp-${{ matrix.ref }}
+1
View File
@@ -66,6 +66,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Build net-snmp
uses: wolfSSL/actions-build-autotools-project@v1
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
run: |
./autogen.sh
./configure ${{ matrix.config }}
make
make -j
./wolfcrypt/test/testwolfcrypt
- name: Print errors
+1
View File
@@ -52,6 +52,7 @@ jobs:
repository: nss-dev/nss
ref: ${{ env.NSS_REF }}
path: nss
fetch-depth: 1
- name: Compile nss
if: steps.cache.outputs.cache-hit != 'true'
+1
View File
@@ -65,6 +65,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
# Avoid DoS'ing ntp site so cache the tar.gz
- name: Check if we have ntp
+2
View File
@@ -71,6 +71,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout openldap
uses: actions/checkout@v4
@@ -78,6 +79,7 @@ jobs:
repository: openldap/openldap
path: openldap
ref: ${{ matrix.git_ref }}
fetch-depth: 1
- name: Build and test OpenLDAP
working-directory: openldap
+1
View File
@@ -87,6 +87,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Build and test openssh
uses: wolfSSL/actions-build-autotools-project@v1
+1 -1
View File
@@ -186,7 +186,7 @@ jobs:
cp ./examples/configs/user_settings_all.h user_settings.h
sed -i -e "s/if 0/if 1/" user_settings.h
./configure --enable-usersettings
make
make -j
make check
windows_build:
+2
View File
@@ -75,6 +75,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout pam-ipmi
uses: actions/checkout@v4
@@ -82,6 +83,7 @@ jobs:
repository: openbmc/pam-ipmi
path: pam-ipmi
ref: ${{ matrix.git_ref }}
fetch-depth: 1
- name: Build pam-ipmi
working-directory: pam-ipmi
+2
View File
@@ -122,6 +122,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout CPython
uses: actions/checkout@v4
@@ -129,6 +130,7 @@ jobs:
repository: python/cpython
ref: v${{ matrix.python_ver }}
path: cpython
fetch-depth: 1
- name: Apply wolfSSL patch
working-directory: cpython
+1 -1
View File
@@ -29,7 +29,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
+2
View File
@@ -76,6 +76,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout jitterentropy-library
uses: actions/checkout@v4
@@ -83,6 +84,7 @@ jobs:
repository: smuellerDD/jitterentropy-library
path: jitterentropy-library
ref: v3.5.0
fetch-depth: 1
- name: Build jitterentropy-library
working-directory: jitterentropy-library
+2 -1
View File
@@ -79,6 +79,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Build socat
working-directory: ./socat-${{ matrix.socat_version }}
@@ -86,7 +87,7 @@ jobs:
patch -p1 < ../osp/socat/${{ matrix.socat_version }}/socat-${{ matrix.socat_version }}.patch
autoreconf -vfi
./configure --with-wolfssl=$GITHUB_WORKSPACE/build-dir --enable-default-ipv=4
make
make -j
- name: Run socat tests
working-directory: ./socat-${{ matrix.socat_version }}
+2
View File
@@ -76,6 +76,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout SoftHSMv2
uses: actions/checkout@v4
@@ -83,6 +84,7 @@ jobs:
repository: opendnssec/SoftHSMv2
path: softhsm
ref: ${{ matrix.ref }}
fetch-depth: 1
# Not using wolfSSL/actions-build-autotools-project@v1 because autogen.sh doesn't work
- name: Build softhsm
+1
View File
@@ -89,6 +89,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Build and test sssd
uses: wolfSSL/actions-build-autotools-project@v1
+1
View File
@@ -64,6 +64,7 @@ jobs:
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Build and test stunnel
uses: wolfSSL/actions-build-autotools-project@v1
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
]
name: make check
if: github.repository_owner == 'wolfssl'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
# This should be a safe limit for the tests to run.
timeout-minutes: 6
steps:
+2 -1
View File
@@ -38,6 +38,7 @@ jobs:
with:
repository: wolfssl/wolfsm
path: wolfsm
fetch-depth: 1
- name: Install wolfsm
working-directory: wolfsm
@@ -47,7 +48,7 @@ jobs:
run: |
./autogen.sh
./configure ${{ matrix.config }}
make
make -j
make check
- name: Print errors