Skip to content

Kyber Testing

Kyber Testing #29

Workflow file for this run

name: Kyber Tests
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build_liboqs:
name: Build liboqs
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- name: Checking cache for liboqs
uses: actions/cache/restore@v4
id: cache-liboqs
with:
path: opt/liboqs/
key: wolfssh-liboqs-0.10.0-${{ runner.os }}
lookup-only: true
- name: Checkout liboqs
if: steps.cache-liboqs.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: open-quantum-safe/liboqs
ref: 0.10.0
path: liboqs
- name: Build and install liboqs
if: steps.cache-liboqs.outputs.cache-hit != 'true'
working-directory: liboqs
run: |
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/opt/liboqs -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 ..
make
make install
- name: Stash liboqs in cache
if: steps.cache-liboqs.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: opt/liboqs/
key: wolfssh-liboqs-0.10.0-${{ runner.os }}
build_wolfssl:
name: Build wolfssl
runs-on: ubuntu-latest
timeout-minutes: 4
steps:
- name: Checking cache for wolfssl
uses: actions/cache/restore@v4
id: cache-wolfssl
with:
path: opt/wolfssl/
key: wolfssh-wolfssl-v5.7.0-stable-${{ runner.os }}
lookup-only: true
- name: Checkout wolfssl
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: wolfssl/wolfssl
ref: v5.7.0-stable
path: wolfssl
- name: Build and install wolfssl
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
working-directory: wolfssl
run: |
autoreconf -ivf
./configure --prefix=${{ github.workspace }}/opt/wolfssl --enable-wolfssh --enable-cryptonly --disable-examples --disable-crypttests
make
make install
- name: Stash wolfssl in cache
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: opt/wolfssl/
key: wolfssh-wolfssl-v5.7.0-stable-${{ runner.os }}
build_wolfssh:
name: Build wolfssh
runs-on: ubuntu-latest
timeout-minutes: 4
needs: [build_wolfssl, build_liboqs]
steps:
- name: Checking cache for liboqs
uses: actions/cache/restore@v4
with:
path: opt/liboqs/
key: wolfssh-liboqs-0.10.0-${{ runner.os }}
fail-on-cache-miss: true
- name: Checking cache for wolfssl
uses: actions/cache/restore@v4
with:
path: opt/wolfssl/
key: wolfssh-wolfssl-v5.7.0-stable-${{ runner.os }}
fail-on-cache-miss: true
- name: Install wolfSSH
uses: actions/checkout@v4
with:
repository: wolfssl/wolfssh
ref: master
path: wolfssh
- name: Build wolfSSH
working-directory: wolfssh
run: |
autoreconf -ivf
./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"
make
- name: Run wolfssh tests
working-directory: wolfssh
run: make check