Add POSIX demo runner script and CI integration #121
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
name: Build and Test | |
on: | |
push: | |
branches: [ 'master', 'main', 'release/**' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
# pull and build wolfssl | |
- name: Checkout wolfssl | |
uses: actions/checkout@master | |
with: | |
repository: wolfssl/wolfssl | |
path: wolfssl | |
# pull and build wolfhsm | |
- name: Checkout wolfhsm | |
uses: actions/checkout@master | |
with: | |
repository: wolfssl/wolfhsm | |
path: wolfhsm | |
# Build examples | |
- name: Build POSIX TCP server | |
run: ls && cd posix/tcp/wh_server_tcp && make WOLFSSL_DIR=../../../wolfssl WOLFHSM_DIR=../../../wolfhsm | |
- name: Build POSIX TCP client | |
run: cd posix/tcp/wh_client_tcp && make WOLFSSL_DIR=../../../wolfssl WOLFHSM_DIR=../../../wolfhsm | |
# Run server and client tests | |
- name: Run POSIX TCP tests | |
run: | | |
chmod +x scripts/run_posix_demo.sh | |
cd posix/tcp/wh_server_tcp | |
WOLFSSL_DIR=../../../wolfssl WOLFHSM_DIR=../../../wolfhsm ../../../scripts/run_posix_demo.sh | |