123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- name: OpenVPN Tests
- on:
- push:
- branches: [ 'master', 'main', 'release/**' ]
- pull_request:
- branches: [ '*' ]
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
- jobs:
- build_wolfssl:
- name: Build wolfSSL
- if: github.repository_owner == 'wolfssl'
-
- runs-on: ubuntu-22.04
-
- timeout-minutes: 4
- steps:
- - name: Build wolfSSL
- uses: wolfSSL/actions-build-autotools-project@v1
- with:
- path: wolfssl
- configure: --enable-openvpn
- install: true
- - name: tar build-dir
- run: tar -zcf build-dir.tgz build-dir
- - name: Upload built lib
- uses: actions/upload-artifact@v4
- with:
- name: wolf-install-openvpn
- path: build-dir.tgz
- retention-days: 5
- openvpn_check:
- strategy:
- fail-fast: false
- matrix:
-
- ref: [ release/2.6, master ]
- name: ${{ matrix.ref }}
- if: github.repository_owner == 'wolfssl'
- runs-on: ubuntu-22.04
-
- timeout-minutes: 10
- needs: build_wolfssl
- steps:
- - name: Download lib
- uses: actions/download-artifact@v4
- with:
- name: wolf-install-openvpn
- - name: untar build-dir
- run: tar -xf build-dir.tgz
- - name: Install dependencies
- run: |
- sudo apt-get update
- sudo apt-get install liblzo2-dev libpam0g-dev liblz4-dev libcap-ng-dev \
- linux-libc-dev man2html libcmocka-dev python3-docutils \
- libtool automake autoconf libnl-genl-3-dev libnl-genl-3-200
- - name: workaround high-entropy ASLR
-
- run: sudo sysctl vm.mmap_rnd_bits=28
- - if: ${{ matrix.ref != 'master' }}
- name: Build and test openvpn with fsanitize
- run: |
- echo 'extra_c_flags=CC="gcc -fsanitize=address" CFLAGS="-fno-omit-frame-pointer -O2"' >> $GITHUB_ENV
- - name: Build and test openvpn
- uses: wolfSSL/actions-build-autotools-project@v1
- with:
- repository: OpenVPN/openvpn
- ref: ${{ matrix.ref }}
- path: openvpn
- configure: >-
- --with-crypto-library=wolfssl
- WOLFSSL_CFLAGS="-I$GITHUB_WORKSPACE/build-dir/include/ -I$GITHUB_WORKSPACE/build-dir/include/wolfssl"
- WOLFSSL_LIBS="-L$GITHUB_WORKSPACE/build-dir/lib -lwolfssl"
- ${{ env.extra_c_flags }}
- check: true
- - name: Confirm OpenVPN built with wolfSSL
- working-directory: ./openvpn
- run: ldd src/openvpn/openvpn | grep wolfssl
|