@@ -16,189 +16,189 @@ on:
16
16
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
17
jobs :
18
18
# This workflow contains a single job called "build"
19
- # build-ubuntu:
20
- # # The type of runner that the job will run on
21
- # runs-on: ubuntu-latest
22
- # timeout-minutes: 30
23
-
24
- # # Steps represent a sequence of tasks that will be executed as part of the job
25
- # steps:
26
- # # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27
- # - uses: actions/checkout@v2
28
- # with:
29
- # submodules: recursive
30
-
31
- # # Runs a set of commands using the runners shell
19
+ build-ubuntu :
20
+ # The type of runner that the job will run on
21
+ runs-on : ubuntu-latest
22
+ timeout-minutes : 30
23
+
24
+ # Steps represent a sequence of tasks that will be executed as part of the job
25
+ steps :
26
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27
+ - uses : actions/checkout@v2
28
+ with :
29
+ submodules : recursive
30
+
31
+ # Runs a set of commands using the runners shell
32
32
33
- # - name: build relic
34
- # run: python3 build.py --setup --relic --par=4 -DVERBOSE_FETCH=ON -DENABLE_BOOST=OFF -DENABLE_SODIUM=OFF -DENABLE_ASAN=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
33
+ - name : build relic
34
+ run : python3 build.py --setup --relic --par=4 -DVERBOSE_FETCH=ON -DENABLE_BOOST=OFF -DENABLE_SODIUM=OFF -DENABLE_ASAN=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
35
35
36
- # - name: build bitpolymul
37
- # run: python3 build.py --setup --bitpolymul --par=4 -DVERBOSE_FETCH=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
36
+ - name : build bitpolymul
37
+ run : python3 build.py --setup --bitpolymul --par=4 -DVERBOSE_FETCH=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
38
38
39
- # - name: build libOTe
40
- # run: python3 build.py --par=4 -D ENABLE_ALL_OT=ON -DENABLE_CIRCUITS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
39
+ - name : build libOTe
40
+ run : python3 build.py --par=4 -D ENABLE_ALL_OT=ON -DENABLE_CIRCUITS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
41
41
42
- # - name: unit tests
43
- # run: ./out/build/linux/frontend/frontend_libOTe -u
42
+ - name : unit tests
43
+ run : ./out/build/linux/frontend/frontend_libOTe -u
44
44
45
45
46
- # - name: find source tree
47
- # run: |
48
- # cd libOTe_Tests/cmakeTests
49
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_PREFIX_PATH=../../
50
- # cmake --build out/
51
- # ./out/main
52
- # rm -rf out/
53
- # cd ../..
46
+ - name : find source tree
47
+ run : |
48
+ cd libOTe_Tests/cmakeTests
49
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_PREFIX_PATH=../../
50
+ cmake --build out/
51
+ ./out/main
52
+ rm -rf out/
53
+ cd ../..
54
54
55
- # - name: hint test
56
- # run: |
57
- # cd libOTe_Tests/cmakeTests
58
- # cmake -S . -B out/ -D LIBOTE_HINT=../..
59
- # cmake --build out/
60
- # ./out/main
61
- # rm -rf out/
62
- # cd ../..
63
-
64
- # - name: install prefix test
65
- # run: |
66
- # python3 build.py --install=~/install -DCMAKE_BUILD_TYPE=RelWithDebInfo
67
- # cd libOTe_Tests/cmakeTests
68
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=~/install
69
- # cmake --build out/
70
- # ./out/main
71
- # rm -rf out/
72
- # cd ../..
55
+ - name : hint test
56
+ run : |
57
+ cd libOTe_Tests/cmakeTests
58
+ cmake -S . -B out/ -D LIBOTE_HINT=../..
59
+ cmake --build out/
60
+ ./out/main
61
+ rm -rf out/
62
+ cd ../..
63
+
64
+ - name : install prefix test
65
+ run : |
66
+ python3 build.py --install=~/install -DCMAKE_BUILD_TYPE=RelWithDebInfo
67
+ cd libOTe_Tests/cmakeTests
68
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=~/install
69
+ cmake --build out/
70
+ ./out/main
71
+ rm -rf out/
72
+ cd ../..
73
73
74
74
75
- # - name: install test
76
- # run: |
77
- # python3 build.py --setup --relic --bitpolymul --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
78
- # python3 build.py --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
79
- # cd libOTe_Tests/cmakeTests
80
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo
81
- # cmake --build out/
82
- # ./out/main
83
- # rm -rf out/
84
- # cd ../..
75
+ - name : install test
76
+ run : |
77
+ python3 build.py --setup --relic --bitpolymul --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
78
+ python3 build.py --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
79
+ cd libOTe_Tests/cmakeTests
80
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo
81
+ cmake --build out/
82
+ ./out/main
83
+ rm -rf out/
84
+ cd ../..
85
85
86
86
87
- # - name: build sodium
88
- # run: python3 build.py --setup --sodium --par=4 -DVERBOSE_FETCH=ON -DENABLE_BOOST=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
87
+ - name : build sodium
88
+ run : python3 build.py --setup --sodium --par=4 -DVERBOSE_FETCH=ON -DENABLE_BOOST=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
89
89
90
- # - name: build libOTe
91
- # run: |
92
- # rm ./out/build/linux/frontend/frontend_libOTe
93
- # python3 build.py --par=4 -D ENABLE_ALL_OT=ON -D ENABLE_SODIUM=ON -DENABLE_RELIC=OFF -DPRINT_LOG_ON_FAIL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
90
+ - name : build libOTe
91
+ run : |
92
+ rm ./out/build/linux/frontend/frontend_libOTe
93
+ python3 build.py --par=4 -D ENABLE_ALL_OT=ON -D ENABLE_SODIUM=ON -DENABLE_RELIC=OFF -DPRINT_LOG_ON_FAIL=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
94
94
95
- # - name: unit tests
96
- # run: ./out/build/linux/frontend/frontend_libOTe -u
95
+ - name : unit tests
96
+ run : ./out/build/linux/frontend/frontend_libOTe -u
97
97
98
98
99
- # - name: find source tree
100
- # run: |
101
- # cd libOTe_Tests/cmakeTests
102
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSODIUM=ON -D CMAKE_PREFIX_PATH=../../
103
- # cmake --build out/
104
- # ./out/main
105
- # rm -rf out/
106
- # cd ../..
99
+ - name : find source tree
100
+ run : |
101
+ cd libOTe_Tests/cmakeTests
102
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSODIUM=ON -D CMAKE_PREFIX_PATH=../../
103
+ cmake --build out/
104
+ ./out/main
105
+ rm -rf out/
106
+ cd ../..
107
107
108
- # - name: hint test
109
- # run: |
110
- # cd libOTe_Tests/cmakeTests
111
- # cmake -S . -B out/ -DSODIUM=ON -D LIBOTE_HINT=../..
112
- # cmake --build out/
113
- # ./out/main
114
- # rm -rf out/
115
- # cd ../..
116
-
117
- # - name: install prefix test
118
- # run: |
119
- # python3 build.py --setup --sodium --install=~/install -DCMAKE_BUILD_TYPE=RelWithDebInfo
120
- # python3 build.py --install=~/install -DCMAKE_BUILD_TYPE=RelWithDebInfo
121
- # cd libOTe_Tests/cmakeTests
122
- # cmake -S . -B out/ -DSODIUM=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=~/install
123
- # cmake --build out/
124
- # ./out/main
125
- # rm -rf out/
126
- # cd ../..
108
+ - name : hint test
109
+ run : |
110
+ cd libOTe_Tests/cmakeTests
111
+ cmake -S . -B out/ -DSODIUM=ON -D LIBOTE_HINT=../..
112
+ cmake --build out/
113
+ ./out/main
114
+ rm -rf out/
115
+ cd ../..
116
+
117
+ - name : install prefix test
118
+ run : |
119
+ python3 build.py --setup --sodium --install=~/install -DCMAKE_BUILD_TYPE=RelWithDebInfo
120
+ python3 build.py --install=~/install -DCMAKE_BUILD_TYPE=RelWithDebInfo
121
+ cd libOTe_Tests/cmakeTests
122
+ cmake -S . -B out/ -DSODIUM=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=~/install
123
+ cmake --build out/
124
+ ./out/main
125
+ rm -rf out/
126
+ cd ../..
127
127
128
128
129
- # - name: install test
130
- # run: |
131
- # python3 build.py --setup --sodium --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
132
- # python3 build.py --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
133
- # cd libOTe_Tests/cmakeTests
134
- # cmake -S . -B out/ -DSODIUM=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
135
- # cmake --build out/
136
- # ./out/main
137
- # rm -rf out/
138
- # cd ../..
139
-
140
- # # This workflow contains a single job called "build"
141
- # build-osx:
142
- # # The type of runner that the job will run on
143
- # runs-on: macos-14
144
- # timeout-minutes: 20
145
-
146
- # # Steps represent a sequence of tasks that will be executed as part of the job
147
- # steps:
148
- # # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
149
- # - uses: actions/checkout@v2
150
- # with:
151
- # submodules: recursive
152
-
153
- # # Runs a set of commands using the runners shell
154
-
155
- # - name: build libOTe
156
- # run: python3 build.py -DENABLE_BOOST=OFF -DVERBOSE_FETCH=ON -DENABLE_SSE=OFF -DENABLE_SODIUM=ON -DSODIUM_MONTGOMERY=OFF -D ENABLE_ALL_OT=ON
157
-
158
- # - name: unit tests
159
- # run: ./out/build/osx/frontend/frontend_libOTe -u
129
+ - name : install test
130
+ run : |
131
+ python3 build.py --setup --sodium --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
132
+ python3 build.py --install --sudo -DCMAKE_BUILD_TYPE=RelWithDebInfo
133
+ cd libOTe_Tests/cmakeTests
134
+ cmake -S . -B out/ -DSODIUM=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
135
+ cmake --build out/
136
+ ./out/main
137
+ rm -rf out/
138
+ cd ../..
139
+
140
+ # This workflow contains a single job called "build"
141
+ build-osx :
142
+ # The type of runner that the job will run on
143
+ runs-on : macos-14
144
+ timeout-minutes : 20
145
+
146
+ # Steps represent a sequence of tasks that will be executed as part of the job
147
+ steps :
148
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
149
+ - uses : actions/checkout@v2
150
+ with :
151
+ submodules : recursive
152
+
153
+ # Runs a set of commands using the runners shell
154
+
155
+ - name : build libOTe
156
+ run : python3 build.py -DENABLE_BOOST=OFF -DVERBOSE_FETCH=ON -DENABLE_SSE=OFF -DENABLE_SODIUM=ON -DSODIUM_MONTGOMERY=OFF -D ENABLE_ALL_OT=ON
157
+
158
+ - name : unit tests
159
+ run : ./out/build/osx/frontend/frontend_libOTe -u
160
160
161
161
162
- # - name: find source tree
163
- # run: |
164
- # cd libOTe_Tests/cmakeTests
165
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release -D CMAKE_PREFIX_PATH=../../
166
- # cmake --build out/
167
- # ./out/main
168
- # rm -rf out/
169
- # cd ../..
162
+ - name : find source tree
163
+ run : |
164
+ cd libOTe_Tests/cmakeTests
165
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release -D CMAKE_PREFIX_PATH=../../
166
+ cmake --build out/
167
+ ./out/main
168
+ rm -rf out/
169
+ cd ../..
170
170
171
- # - name: hint test
172
- # run: |
173
- # cd libOTe_Tests/cmakeTests
174
- # cmake -S . -B out/ -D LIBOTE_HINT=../..
175
- # cmake --build out/
176
- # ./out/main
177
- # rm -rf out/
178
- # cd ../..
179
-
180
- # - name: install prefix test
181
- # run: |
182
- # python3 build.py --setup --sodium --install=~/install
183
- # python3 build.py --install=~/install
184
- # cd libOTe_Tests/cmakeTests
185
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/install
186
- # cmake --build out/
187
- # ./out/main
188
- # rm -rf out/
189
- # cd ../..
171
+ - name : hint test
172
+ run : |
173
+ cd libOTe_Tests/cmakeTests
174
+ cmake -S . -B out/ -D LIBOTE_HINT=../..
175
+ cmake --build out/
176
+ ./out/main
177
+ rm -rf out/
178
+ cd ../..
179
+
180
+ - name : install prefix test
181
+ run : |
182
+ python3 build.py --setup --sodium --install=~/install
183
+ python3 build.py --install=~/install
184
+ cd libOTe_Tests/cmakeTests
185
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/install
186
+ cmake --build out/
187
+ ./out/main
188
+ rm -rf out/
189
+ cd ../..
190
190
191
191
192
- # - name: install test
193
- # run: |
194
- # python3 build.py --setup --sodium --install --sudo
195
- # python3 build.py --install --sudo
196
- # cd libOTe_Tests/cmakeTests
197
- # cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release
198
- # cmake --build out/
199
- # ./out/main
200
- # rm -rf out/
201
- # cd ../..
192
+ - name : install test
193
+ run : |
194
+ python3 build.py --setup --sodium --install --sudo
195
+ python3 build.py --install --sudo
196
+ cd libOTe_Tests/cmakeTests
197
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release
198
+ cmake --build out/
199
+ ./out/main
200
+ rm -rf out/
201
+ cd ../..
202
202
203
203
204
204
build-windows :
@@ -217,18 +217,18 @@ jobs:
217
217
218
218
# Runs a set of commands using the runners shell
219
219
- name : build libOTe
220
- run : python3 build.py --par=1 -D ENABLE_ALL_OT=ON -DENABLE_ASAN=true -DENABLE_RELIC=OFF -G Ninja --debug
220
+ run : python3 build.py --par=1 -D ENABLE_ALL_OT=ON -DENABLE_ASAN=true -DENABLE_RELIC=ON -G Ninja
221
221
222
222
223
223
- name : unit test
224
- run : ./out/build/x64-Debug /frontend/frontend_libOTe.exe -u
224
+ run : ./out/build/x64-Release /frontend/frontend_libOTe.exe -u
225
225
226
226
- name : find source tree
227
227
run : |
228
228
cd libOTe_Tests/cmakeTests
229
- cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Debug -D CMAKE_PREFIX_PATH=../../
230
- cmake --build out/ --config Debug
231
- ./out/Debug /main.exe
229
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release -D CMAKE_PREFIX_PATH=../../
230
+ cmake --build out/ --config Release
231
+ ./out/Release /main.exe
232
232
rm -r -fo out/
233
233
cd ../..
234
234
@@ -238,17 +238,17 @@ jobs:
238
238
python3 build.py
239
239
cd libOTe_Tests/cmakeTests
240
240
cmake -S . -B out/ -D LIBOTE_HINT=../..
241
- cmake --build out/ --config Debug
242
- ./out/Debug /main.exe
241
+ cmake --build out/ --config Release
242
+ ./out/Release /main.exe
243
243
rm -r -fo out/
244
244
cd ../..
245
245
246
246
- name : install prefix test
247
247
run : |
248
248
python3 build.py --relic --bitpolymul --install=~/install
249
249
cd libOTe_Tests/cmakeTests
250
- cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=~/install
251
- cmake --build out/ --config Debug
252
- ./out/Debug /main.exe
250
+ cmake -S . -B out/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/install
251
+ cmake --build out/ --config Release
252
+ ./out/Release /main.exe
253
253
rm -r -fo out/
254
254
cd ../..
0 commit comments