77concurrency :
88 group : ${{ github.workflow }}-${{ github.ref }}
99 cancel-in-progress : true
10+
1011jobs :
1112 build_wolfprovider :
1213 uses : ./.github/workflows/build-wolfprovider.yml
1718 matrix :
1819 wolfssl_ref : [ 'master', 'v5.8.0-stable' ]
1920 openssl_ref : [ 'openssl-3.5.0' ]
21+
2022 test_libfido2 :
2123 runs-on : ubuntu-22.04
2224 needs : build_wolfprovider
3537 uses : actions/checkout@v4
3638 with :
3739 fetch-depth : 1
40+
3841 - name : Retrieving wolfSSL/wolfProvider from cache
3942 uses : actions/cache/restore@v4
4043 id : wolfprov-cache
@@ -47,25 +50,32 @@ jobs:
4750 openssl-install/bin
4851 key : wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
4952 fail-on-cache-miss : true
53+
5054 - name : Install test dependencies
5155 run : |
5256 sudo apt-get update
53- sudo apt-get install -y build-essential cmake pkg-config libssl-dev libudev-dev zlib1g-dev libcbor-dev libpcsclite-dev pcscd
57+ sudo apt-get install -y build-essential cmake pkg-config libudev-dev \
58+ zlib1g-dev libcbor-dev libpcsclite-dev pcscd
59+
5460 - name : Checkout libfido2
5561 uses : actions/checkout@v4
5662 with :
5763 repository : Yubico/libfido2
5864 path : libfido2_repo
5965 ref : ${{ matrix.libfido2_ref }}
6066 fetch-depth : 1
67+
6168 - name : Build and install libfido2
6269 working-directory : libfido2_repo
6370 run : |
71+ # Set up the environment for wolfProvider
72+ source $GITHUB_WORKSPACE/scripts/env-setup
6473 mkdir build
6574 cd build
6675 cmake -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/libfido2-install ..
6776 make -j$(nproc)
6877 make install
78+
6979 - name : Run libfido2 tests
7080 working-directory : libfido2_repo/build
7181 run : |
0 commit comments