99env :
1010 LIBOQS_REF : 0.10.0
1111 WOLFSSL_REF : v5.7.0-stable
12+ OS_REF : ubuntu-latest
1213
1314jobs :
1415 build_liboqs :
2021 uses : actions/cache@v4
2122 id : cache-liboqs
2223 with :
23- path : opt/liboqs /
24- key : wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ runner.os }}
24+ path : build-dir /
25+ key : wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
2526 lookup-only : true
2627
2728 - name : Checkout liboqs
3839 run : |
3940 mkdir build
4041 cd build
41- cmake -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/opt/liboqs -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 ..
42+ cmake -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build-dir -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 ..
4243 make
4344 make install
4445
5152 uses : actions/cache@v4
5253 id : cache-wolfssl
5354 with :
54- path : opt/wolfssl /
55- key : wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ runner.os }}
55+ path : build-dir /
56+ key : wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
5657 lookup-only : true
5758
5859 - name : Checkout, build, and install wolfssl
6667 check : false
6768 install : true
6869
69- - shell : bash
70- if : steps.cache-wolfssl.outputs.cache-hit != 'true'
71- run : |
72- mkdir -p opt
73- mv build-dir opt/wolfssl
74-
7570 build_wolfssh :
7671 name : Build wolfssh
7772 runs-on : ubuntu-latest
@@ -81,21 +76,21 @@ jobs:
8176 - name : Checking cache for liboqs
8277 uses : actions/cache@v4
8378 with :
84- path : opt/liboqs /
85- key : wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ runner.os }}
79+ path : build-dir /
80+ key : wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
8681 fail-on-cache-miss : true
8782
8883 - name : Checking cache for wolfssl
8984 uses : actions/cache@v4
9085 with :
91- path : opt/wolfssl /
92- key : wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ runner.os }}
86+ path : build-dir /
87+ key : wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
9388 fail-on-cache-miss : true
9489
9590 - name : Checkout, build, and test wolfssh
9691 uses : wolfSSL/actions-build-autotools-project@v1
9792 with :
9893 repository : wolfssl/wolfssh
9994 path : wolfssh
100- configure : --with-liboqs LDFLAGS="-L ${{ github.workspace }}/opt/liboqs/lib -L${{ github.workspace }}/opt/ wolfssl/lib" CPPFLAGS="-I ${{ github.workspace }}/opt/liboqs/include -I${{ github.workspace }}/opt/wolfssl/include"
95+ configure : --with-liboqs= ${{ github.workspace }}/build-dir --with- wolfssl= ${{ github.workspace }}/build-dir
10196 check : true
0 commit comments