Skip to content

Commit

Permalink
Add Github action test for hitch.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareem-wolfssl committed May 24, 2023
1 parent bee3be0 commit 9eafcc8
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/hitch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: hitch Tests

on:
workflow_call:

jobs:
build_wolfssl:
name: Build wolfSSL
# Just to keep it the same as the testing target
runs-on: ubuntu-latest
steps:
- name: Build wolfSSL
uses: wolfSSL/actions-build-autotools-project@v1
with:
path: wolfssl
configure: --enable-hitch
install: true

- name: Upload built lib
uses: actions/upload-artifact@v3
with:
name: wolf-install-hitch
path: build-dir
retention-days: 1

hitch_check:
strategy:
fail-fast: false
matrix:
# List of releases to test
ref: [ 1.7.3 ]
name: ${{ matrix.ref }}
runs-on: ubuntu-latest
needs: build_wolfssl
steps:
- name: Download lib
uses: actions/download-artifact@v3
with:
name: wolf-install-hitch
path: build-dir

- name: Checkout OSP
uses: actions/checkout@v3
with:
# TODO: change to wolfssl repo once merged
repository: kareem-wolfssl/osp
ref: hitch
path: osp

- name: Build hitch
uses: wolfSSL/actions-build-autotools-project@v1
with:
repository: varnish/hitch
ref: ${{ matrix.ref }}
path: hitch
patch-file: $GITHUB_WORKSPACE/osp/hitch/hitch-${{ matrix.ref }}.patch
run: |
autoreconf -i
configure: --with-wolfssl --enable-silent-rules --enable-documentation --enable-warnings --with-lex --with-yacc

- name: Confirm hitch built with wolfSSL
working-directory: ./hitch
run: ldd src/hitch | grep wolfssl

- name: Run hitch tests, skipping 13, 15 and 39
run: |
for test in ./test*.sh; do
if ! [[ "$test" = ./test13* ]] && ! [[ "$test" = ./test15* ]] && ! [[ "$test" = ./test39* ]]; then
$test
fi
done
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
uses: ./.github/workflows/openvpn.yml
hostap:
uses: ./.github/workflows/hostap.yml
hitch:
uses: ./.github/workflows/hitch.yml
# TODO: Currently this test fails. Enable it once it becomes passing.
# haproxy:
# uses: ./.github/workflows/haproxy.yml

0 comments on commit 9eafcc8

Please sign in to comment.