-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from bandi13/addGithubActions
Add simple Github Action
- Loading branch information
Showing
1 changed file
with
45 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,45 @@ | ||
name: Simple Tests | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
branches: [ '*' ] | ||
# branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
make_check: | ||
strategy: | ||
matrix: | ||
config: [ | ||
# Add new configs here | ||
'', | ||
'OPENSSL_TAG=master', | ||
'WOLFSSL_TAG=master', | ||
'OPENSSL_TAG=master WOLFSSL_TAG=master', | ||
] | ||
name: make check | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout wolfProvider | ||
|
||
- name: Test wolfProvider | ||
run: | | ||
${{ matrix.config }} ./scripts/build-wolfprovider.sh | ||
make check | ||
- name: Print errors | ||
if: ${{ failure() }} | ||
run: | | ||
if [ -f test-suite.log ] ; then | ||
cat test-suite.log | ||
fi |