From 8ec2e23773eacaf7494b7449adbe925bec74bbb5 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 21 Jul 2023 15:49:09 +0200 Subject: [PATCH] Rework curl action to use actions-build-autotools-project --- .github/workflows/curl.yml | 46 +++++++++++++++----------------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/.github/workflows/curl.yml b/.github/workflows/curl.yml index da2b149a1..adf9b3ab6 100644 --- a/.github/workflows/curl.yml +++ b/.github/workflows/curl.yml @@ -6,36 +6,26 @@ on: jobs: build: - runs-on: ubuntu-latest - + # This should be a safe limit for the tests to run. + timeout-minutes: 14 steps: - - uses: actions/checkout@master - - name: autogen - run: ./autogen.sh - - name: configure - run: ./configure --enable-all - - name: make - run: make - - name: install - run: sudo make install - - uses: actions/checkout@master + - name: Install test dependencies + run: | + sudo apt-get update + sudo apt-get install nghttp2 + + - name: Build wolfSSL + uses: wolfSSL/actions-build-autotools-project@v1 + with: + path: wolfssl + configure: --enable-curl + install: true + + - name: Build and test stunnel + uses: wolfSSL/actions-build-autotools-project@v1 with: repository: curl/curl path: curl - - name: Install test dependency - working-directory: ./curl - run: sudo apt-get install nghttp2 - - name: curl buildconf - working-directory: ./curl - run: ./buildconf - - name: curl configure - working-directory: ./curl - run: ./configure --with-wolfssl - - name: curl make - working-directory: ./curl - run: make - - name: curl unit tests - working-directory: ./curl - run: make test - + configure: --with-wolfssl=$GITHUB_WORKSPACE/build-dir + check: true