summaryrefslogtreecommitdiffstats
path: root/extra/wolfssl/wolfssl/.github/workflows/curl.yml
diff options
context:
space:
mode:
Diffstat (limited to 'extra/wolfssl/wolfssl/.github/workflows/curl.yml')
-rw-r--r--extra/wolfssl/wolfssl/.github/workflows/curl.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/extra/wolfssl/wolfssl/.github/workflows/curl.yml b/extra/wolfssl/wolfssl/.github/workflows/curl.yml
new file mode 100644
index 00000000..fe6350e7
--- /dev/null
+++ b/extra/wolfssl/wolfssl/.github/workflows/curl.yml
@@ -0,0 +1,61 @@
+name: curl Test
+
+on:
+ workflow_call:
+
+jobs:
+ build_wolfssl:
+ name: Build wolfSSL
+ runs-on: ubuntu-latest
+ # This should be a safe limit for the tests to run.
+ 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' ]
+ steps:
+ - name: Install test dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install nghttp2
+ sudo pip install impacket
+
+ - name: Download lib
+ uses: actions/download-artifact@v3
+ with:
+ name: wolf-install-curl
+ path: build-dir
+
+ - name: Build curl
+ uses: wolfSSL/actions-build-autotools-project@v1
+ with:
+ repository: curl/curl
+ path: curl
+ ref: ${{ matrix.curl_ref }}
+ configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir
+ check: false
+
+ - name: Test curl
+ working-directory: curl
+ run: make -j test-ci