forked from wolfSSL/wolfssh
-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (67 loc) · 1.92 KB
/
kyber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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: $HOME/liboqs
run: |
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/opt /-DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 ..
make
sudo make install
ls $HOME/opt
- name: Upload liboqs
uses: actions/upload-artifact@v4
with:
name: wolfssh-liboqs
path: $HOME/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 --enable-wolfssh --enable-cryptonly --disable-examples --disable-crypttests
make
sudo make install
sudo ldconfig
build_wolfssh:
name: Build wolfssh
runs-on: ubuntu-latest
timeout-minutes: 4
needs: [build_wolfssl, build_liboqs]
steps:
- name: Download liboqs
uses: actions/download-artifact@v4
with:
name: wolfssh-liboqs
path: $HOME/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
make
- name: Run wolfssh tests
working-directory: wolfssh
run: make check