62 lines
1.4 KiB
YAML
Raw Normal View History

2023-07-11 11:46:55 -06:00
name: curl Test
2023-07-11 11:27:45 -06:00
on:
2023-07-11 11:46:55 -06:00
workflow_call:
2023-07-11 11:27:45 -06:00
jobs:
2023-10-12 10:45:08 +02:00
build_wolfssl:
name: Build wolfSSL
2023-07-11 11:27:45 -06:00
runs-on: ubuntu-latest
# This should be a safe limit for the tests to run.
2023-10-12 10:45:08 +02:00
timeout-minutes: 4
steps:
- name: Build wolfSSL
uses: wolfSSL/actions-build-autotools-project@v1
with:
path: wolfssl
configure: --enable-curl
install: true
- name: Upload built lib
uses: actions/upload-artifact@v3
with:
name: wolf-install-curl
path: build-dir
retention-days: 1
test_curl:
name: ${{ matrix.curl_ref }}
runs-on: ubuntu-latest
# This should be a safe limit for the tests to run.
timeout-minutes: 15
needs: build_wolfssl
strategy:
fail-fast: false
matrix:
curl_ref: [ 'master', 'curl-8_4_0' ]
2023-07-11 11:27:45 -06:00
steps:
- name: Install test dependencies
run: |
sudo apt-get update
sudo apt-get install nghttp2
2023-10-10 11:37:48 +02:00
sudo pip install impacket
2023-10-12 10:45:08 +02:00
- name: Download lib
uses: actions/download-artifact@v3
with:
2023-10-12 10:45:08 +02:00
name: wolf-install-curl
path: build-dir
2023-10-10 14:19:03 +02:00
- name: Build curl
uses: wolfSSL/actions-build-autotools-project@v1
2023-07-11 11:27:45 -06:00
with:
repository: curl/curl
path: curl
2023-10-12 10:45:08 +02:00
ref: ${{ matrix.curl_ref }}
configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
2023-10-10 14:19:03 +02:00
check: false
- name: Test curl
working-directory: curl
run: make -j test-ci