-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bee3be0
commit 9eafcc8
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters