Merge pull request #168 from padelsbach/wp_setup_env_script #730
This file contains hidden or 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: Simple Tests | |
| # START OF COMMON SECTION | |
| on: | |
| push: | |
| branches: [ 'master', 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # END OF COMMON SECTION | |
| jobs: | |
| simple_test: | |
| name: Simple Test | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 20 | |
| strategy: | |
| matrix: | |
| openssl_ref: [ 'master', 'openssl-3.5.0' ] | |
| wolfssl_ref: [ 'master', 'v5.8.0-stable' ] | |
| force_fail: ['WOLFPROV_FORCE_FAIL=1', ''] | |
| steps: | |
| - name: Checkout wolfProvider | |
| uses: actions/checkout@v4 | |
| # Check if this version of wolfssl/wolfprovider has already been built, | |
| # mark to cache these items on post if we do end up building | |
| - name: Checking wolfSSL/wolfProvider in cache | |
| uses: actions/cache@v4 | |
| id: wolfprov-cache | |
| with: | |
| path: | | |
| scripts | |
| wolfssl-source | |
| wolfssl-install | |
| wolfprov-install | |
| openssl-install | |
| provider.conf | |
| key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }} | |
| lookup-only: true | |
| # If wolfssl/wolfprovider have not yet been built, pull ossl from cache | |
| - name: Checking OpenSSL in cache | |
| if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' | |
| uses: actions/cache@v4 | |
| id: openssl-cache | |
| with: | |
| path: | | |
| openssl-source | |
| openssl-install | |
| key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} | |
| lookup-only: true | |
| # If not yet built this version, build it now | |
| - name: Build wolfProvider | |
| if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' | |
| run: | | |
| OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh | |
| - name: Run simple tests | |
| run: | | |
| ./scripts/cmd_test/do-cmd-tests.sh ${{ matrix.force_fail }} | |
| - name: Print test logs | |
| if: always() | |
| run: | | |
| if [ -f test-suite.log ] ; then | |
| cat test-suite.log | |
| fi |