mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
adjust test yml file
This commit is contained in:
32
.github/workflows/socat.yml
vendored
32
.github/workflows/socat.yml
vendored
@@ -3,7 +3,7 @@ name: socat Tests
|
|||||||
# START OF COMMON SECTION
|
# START OF COMMON SECTION
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ 'master' ]
|
branches: [ 'master', 'main', 'release/**' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ '*' ]
|
branches: [ '*' ]
|
||||||
|
|
||||||
@@ -13,23 +13,41 @@ concurrency:
|
|||||||
# END OF COMMON SECTION
|
# END OF COMMON SECTION
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build_wolfssl:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 4
|
||||||
|
- name: Build wolfSSL
|
||||||
|
uses: wolfSSL/actions-build-autotools-project@v1
|
||||||
|
with:
|
||||||
|
path: wolfssl
|
||||||
|
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:
|
socat_check:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# This should be a safe limit for the tests to run.
|
# This should be a safe limit for the tests to run.
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
needs: build_wolfssl
|
||||||
steps:
|
steps:
|
||||||
- name: Install prereqs
|
- name: Install prereqs
|
||||||
run:
|
run:
|
||||||
sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev
|
sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev
|
||||||
|
|
||||||
- name: Build wolfSSL
|
- name: Download lib
|
||||||
uses: wolfSSL/actions-build-autotools-project@v1
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: wolfssl
|
name: wolf-install-socat
|
||||||
configure: --enable-maxfragment --enable-opensslall --enable-opensslextra --enable-dtls --enable-oldtls --enable-tlsv10 --enable-ipv6 'CPPFLAGS=-DWOLFSSL_NO_DTLS_SIZE_CHECK -DOPENSSL_COMPATIBLE_DEFAULTS'
|
path: build-dir
|
||||||
install: true
|
|
||||||
|
|
||||||
- name: Download socat
|
- 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
|
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: |
|
run: |
|
||||||
patch -p1 < ../osp/socat/1.8.0.0/socat-1.8.0.0.patch
|
patch -p1 < ../osp/socat/1.8.0.0/socat-1.8.0.0.patch
|
||||||
autoreconf -vfi
|
autoreconf -vfi
|
||||||
./configure --with-wolfssl=/usr/local
|
./configure --with-wolfssl=$GITHUB_WORKSPACE/build-dir
|
||||||
make
|
make
|
||||||
|
|
||||||
- name: Run socat tests
|
- name: Run socat tests
|
||||||
|
Reference in New Issue
Block a user