Skip to content

Commit 962dbcc

Browse files
committed
ci restore
1 parent f381e0c commit 962dbcc

File tree

1 file changed

+170
-170
lines changed

1 file changed

+170
-170
lines changed

.github/workflows/build-test.yml

+170-170
Original file line numberDiff line numberDiff line change
@@ -16,189 +16,189 @@ on:
1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
1818
# 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
3232

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
3535

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
3838

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
4141

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
4444

4545

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 ../..
5454
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 ../..
7373
7474
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 ../..
8585
8686

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
8989

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
9494
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
9797

9898

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 ../..
107107
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 ../..
127127
128128
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
160160

161161

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 ../..
170170
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 ../..
190190
191191
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 ../..
202202
203203
204204
build-windows:
@@ -217,18 +217,18 @@ jobs:
217217

218218
# Runs a set of commands using the runners shell
219219
- 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
221221

222222

223223
- 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
225225

226226
- name: find source tree
227227
run: |
228228
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
232232
rm -r -fo out/
233233
cd ../..
234234
@@ -238,17 +238,17 @@ jobs:
238238
python3 build.py
239239
cd libOTe_Tests/cmakeTests
240240
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
243243
rm -r -fo out/
244244
cd ../..
245245
246246
- name: install prefix test
247247
run: |
248248
python3 build.py --relic --bitpolymul --install=~/install
249249
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
253253
rm -r -fo out/
254254
cd ../..

0 commit comments

Comments
 (0)