|
| 1 | +name: Curl Tests |
| 2 | + |
| 3 | +# START OF COMMON SECTION |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [ '*' ] |
| 7 | +# branches: [ 'master', 'main', 'release/**' ] |
| 8 | + pull_request: |
| 9 | + branches: [ '*' ] |
| 10 | + |
| 11 | +concurrency: |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: true |
| 14 | +# END OF COMMON SECTION |
| 15 | + |
| 16 | +jobs: |
| 17 | + make_check: |
| 18 | + name: make check |
| 19 | + runs-on: ubuntu-latest |
| 20 | + # This should be a safe limit for the tests to run. |
| 21 | + timeout-minutes: 10 |
| 22 | + steps: |
| 23 | + - name: Checkout wolfProvider |
| 24 | + uses: actions/checkout@v4 |
| 25 | + with: |
| 26 | + path: wolfProvider |
| 27 | + |
| 28 | + - name: Test wolfProvider |
| 29 | + working-directory: wolfProvider |
| 30 | + run: | |
| 31 | + OPENSSL_TAG=master WOLFSSL_TAG=master ./scripts/build-wolfprovider.sh |
| 32 | + make check |
| 33 | +
|
| 34 | + - name: Print errors |
| 35 | + if: ${{ failure() }} |
| 36 | + run: | |
| 37 | + if [ -f test-suite.log ] ; then |
| 38 | + cat test-suite.log |
| 39 | + fi |
| 40 | + test_curl: |
| 41 | + name: ${{ matrix.curl_ref }} |
| 42 | + if: github.repository_owner == 'wolfssl' |
| 43 | + runs-on: ubuntu-latest |
| 44 | + # This should be a safe limit for the tests to run. |
| 45 | + timeout-minutes: 15 |
| 46 | + strategy: |
| 47 | + fail-fast: false |
| 48 | + matrix: |
| 49 | + curl_ref: [ 'master', 'curl-8_4_0' ] |
| 50 | + steps: |
| 51 | + - name: Install test dependencies |
| 52 | + run: | |
| 53 | + sudo apt-get update |
| 54 | + sudo apt-get install nghttp2 libpsl5 libpsl-dev python3-impacket |
| 55 | +
|
| 56 | + - name: Build curl |
| 57 | + uses: wolfSSL/actions-build-autotools-project@v1 |
| 58 | + with: |
| 59 | + repository: curl/curl |
| 60 | + path: curl |
| 61 | + ref: ${{ matrix.curl_ref }} |
| 62 | + configure: --with-openssl |
| 63 | + check: false |
| 64 | + |
| 65 | + - name: Test curl |
| 66 | + working-directory: curl |
| 67 | + run: | |
| 68 | + LD_LIBRARY_PATH=$GITHUB_WORKSPACE/wolfProvider/wolfssl-install/lib:$GITHUB_WORKSPACE/wolfProvider/openssl-install/lib64 \ |
| 69 | + OPENSSL_CONF=$GITHUB_WORKSPACE/wolfProvider/provider.conf \ |
| 70 | + OPENSSL_MODULES=$GITHUB_WORKSPACE/wolfProvider/wolfprov-install/lib \ |
| 71 | + make -j $(nproc) test-ci |
0 commit comments