forked from wolfSSL/wolfssh
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Kyber Tests | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
build_liboqs: | ||
name: Build liboqs | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 4 | ||
steps: | ||
- name: Install liboqs source | ||
run: git clone --depth 1 --branch "0.10.0" "https://github.com/open-quantum-safe/liboqs" | ||
|
||
- name: Build and install liboqs | ||
working-directory: liboqs | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=../../opt -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 .. | ||
make | ||
make install | ||
- name: Upload liboqs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolfssh-liboqs | ||
path: opt/ | ||
retention-days: 1 | ||
|
||
build_wolfssl: | ||
name: Build wolfssl | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 4 | ||
steps: | ||
- name: Install wolfssl source | ||
run: git clone --depth 1 "https://github.com/wolfssl/wolfssl" | ||
|
||
- name: Build and install wolfssl | ||
working-directory: wolfssl | ||
run: | | ||
autoreconf -ivf | ||
./configure --prefix=${{ github.workspace }}/opt --enable-wolfssh --enable-cryptonly --disable-examples --disable-crypttests | ||
make | ||
make install | ||
- name: Upload wolfssl | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolfssh-wolfssl | ||
path: ${{ github.workspace}}/opt/ | ||
retention-days: 1 | ||
|
||
build_wolfssh: | ||
name: Build wolfssh | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 4 | ||
needs: [build_wolfssl, build_liboqs] | ||
steps: | ||
- name: Download wolfssl | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolfssh-wolfssl | ||
path: opt/ | ||
|
||
- name: Download liboqs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolfssh-liboqs | ||
path: opt/ | ||
|
||
- name: Install wolfSSH | ||
run: git clone --depth 1 "https://github.com/wolfssl/wolfssh" | ||
|
||
- name: Build wolfSSH | ||
working-directory: wolfssh | ||
run: | | ||
ls /usr/local/lib | ||
autoreconf -ivf | ||
./configure --with-liboqs=../opt LDFLAGS=-L../opt/lib CPPFLAGS=-I../opt/include | ||
make | ||
- name: Run wolfssh tests | ||
working-directory: wolfssh | ||
run: make check |