@@ -2,25 +2,23 @@ name: GitHub actions
2
2
3
3
on :
4
4
push :
5
- branches : [ "**" ]
5
+ branches : ["**"]
6
6
pull_request :
7
- branches : [ "**" ]
7
+ branches : ["**"]
8
8
repository_dispatch :
9
- types : [ "**" ]
9
+ types : ["**"]
10
10
11
11
permissions :
12
12
contents : read
13
13
14
14
env :
15
15
BUILD_TYPE : Debug
16
- LD_LIBRARY_PATH : /usr/local/lib
17
- WIN_LIBOQS_INSTALL_PATH : C:\liboqs
18
16
19
17
jobs :
20
18
build :
21
19
strategy :
22
20
matrix :
23
- os : [ ubuntu-latest, macos-latest, windows-latest ]
21
+ os : [ubuntu-latest, macos-latest, windows-latest]
24
22
runs-on : ${{ matrix.os }}
25
23
26
24
steps :
36
34
python -m pip install --upgrade pip
37
35
pip install nose2
38
36
39
- - name : Install liboqs POSIX
40
- if : matrix.os != 'windows-latest'
41
- run : |
42
- git clone --branch main --single-branch --depth 1 https://github.com/open-quantum-safe/liboqs
43
- cmake -S liboqs -B liboqs/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
44
- cmake --build liboqs/build --parallel 4
45
- sudo cmake --build liboqs/build --target install
46
-
47
37
- name : Run examples POSIX
48
38
if : matrix.os != 'windows-latest'
49
39
run : |
@@ -59,20 +49,10 @@ jobs:
59
49
run : |
60
50
nose2 --verbose
61
51
62
- - name : Install liboqs Windows
63
- if : matrix.os == 'windows-latest'
64
- shell : cmd
65
- run : |
66
- git clone --branch main --single-branch --depth 1 https://github.com/open-quantum-safe/liboqs
67
- cmake -S liboqs -B liboqs\build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.WIN_LIBOQS_INSTALL_PATH}} -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
68
- cmake --build liboqs\build --parallel 4
69
- cmake --build liboqs\build --target install
70
-
71
52
- name : Run examples Windows
72
53
if : matrix.os == 'windows-latest'
73
54
shell : cmd
74
55
run : |
75
- set PATH=%PATH%;${{env.WIN_LIBOQS_INSTALL_PATH}}\bin
76
56
pip install .
77
57
python examples/kem.py
78
58
echo.
84
64
shell : cmd
85
65
if : matrix.os == 'windows-latest'
86
66
run : |
87
- set PATH=%PATH%;${{env.WIN_LIBOQS_INSTALL_PATH}}\bin
88
67
nose2 --verbose
0 commit comments