adjust test yml file

This commit is contained in:
JacobBarthelmeh
2024-06-13 12:51:51 -06:00
parent 30dbf7c047
commit 3d70fb1d50

View File

@@ -3,7 +3,7 @@ name: socat Tests
# START OF COMMON SECTION
on:
push:
branches: [ 'master' ]
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
@@ -13,17 +13,9 @@ concurrency:
# END OF COMMON SECTION
jobs:
socat_check:
strategy:
fail-fast: false
build_wolfssl:
runs-on: ubuntu-latest
# This should be a safe limit for the tests to run.
timeout-minutes: 30
steps:
- name: Install prereqs
run:
sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev
timeout-minutes: 4
- name: Build wolfSSL
uses: wolfSSL/actions-build-autotools-project@v1
with:
@@ -31,6 +23,32 @@ jobs:
configure: --enable-maxfragment --enable-opensslall --enable-opensslextra --enable-dtls --enable-oldtls --enable-tlsv10 --enable-ipv6 'CPPFLAGS=-DWOLFSSL_NO_DTLS_SIZE_CHECK -DOPENSSL_COMPATIBLE_DEFAULTS'
install: true
- name: Upload built lib
uses: actions/upload-artifact@v4
with:
name: wolf-install-socat
path: build-dir
retention-days: 3
socat_check:
strategy:
fail-fast: false
runs-on: ubuntu-latest
# This should be a safe limit for the tests to run.
timeout-minutes: 30
needs: build_wolfssl
steps:
- name: Install prereqs
run:
sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev
- name: Download lib
uses: actions/download-artifact@v4
with:
name: wolf-install-socat
path: build-dir
- name: Download socat
run: curl -O http://www.dest-unreach.org/socat/download/socat-1.8.0.0.tar.gz && tar xvf socat-1.8.0.0.tar.gz
@@ -45,7 +63,7 @@ jobs:
run: |
patch -p1 < ../osp/socat/1.8.0.0/socat-1.8.0.0.patch
autoreconf -vfi
./configure --with-wolfssl=/usr/local
./configure --with-wolfssl=$GITHUB_WORKSPACE/build-dir
make
- name: Run socat tests