Skip to content

Add retry loop for RSA keygen #404

Add retry loop for RSA keygen

Add retry loop for RSA keygen #404

Workflow file for this run

name: liboauth2 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:
build_wolfprovider:
uses: ./.github/workflows/build-wolfprovider.yml
with:
wolfssl_ref: ${{ matrix.wolfssl_ref }}
openssl_ref: ${{ matrix.openssl_ref }}
strategy:
matrix:
wolfssl_ref: [ 'master', 'v5.8.0-stable' ]
openssl_ref: [ 'openssl-3.5.0' ]
test_liboauth2:
runs-on: ubuntu-22.04
needs: build_wolfprovider
timeout-minutes: 20
strategy:
matrix:
liboauth2_ref: [ 'v1.4.5.4' ] # No master with patch
wolfssl_ref: [ 'master', 'v5.8.0-stable' ]
openssl_ref: [ 'openssl-3.5.0' ]
force_fail: ['WOLFPROV_FORCE_FAIL=1', '']
steps:
- name: Checkout wolfProvider
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Retrieving wolfSSL/wolfProvider from cache
uses: actions/cache/restore@v4
id: wolfprov-cache
with:
path: |
wolfssl-install
wolfprov-install
openssl-install/lib64
openssl-install/include
openssl-install/bin
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
fail-on-cache-miss: true
- name: Install liboauth2 dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libjansson-dev \
libcjose-dev pkg-config build-essential apache2-dev libhiredis-dev \
libmemcached-dev autotools-dev autoconf automake libtool check
- name: Checkout OSP
uses: actions/checkout@v4
with:
repository: wolfssl/osp
path: osp
fetch-depth: 1
- name: Checkout liboauth2
uses: actions/checkout@v4
with:
repository: OpenIDC/liboauth2
ref: ${{ matrix.liboauth2_ref }}
path: liboauth2
fetch-depth: 1
- name: Build liboauth2
working-directory: liboauth2
run: |
# Set up the environment for wolfProvider
source $GITHUB_WORKSPACE/scripts/env-setup
# Apply patch from OSP repo
patch -p1 < $GITHUB_WORKSPACE/osp/wolfProvider/liboauth2/liboauth2-${{ matrix.liboauth2_ref }}-wolfprov.patch
autoreconf -fiv
./configure
make -j$(nproc)
- name: Run liboauth2 tests
working-directory: liboauth2
run: |
# Set up the environment for wolfProvider
source $GITHUB_WORKSPACE/scripts/env-setup
export ${{ matrix.force_fail }}
# Build and run tests
make check 2>&1 | tee liboauth2-test.log
TEST_RESULT=$?
$GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} liboauth2