-
Notifications
You must be signed in to change notification settings - Fork 20
120 lines (118 loc) · 3.53 KB
/
test.yml
File metadata and controls
120 lines (118 loc) · 3.53 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Test
on:
push:
# thanks to https://izumisy.work/entry/2022/03/28/140644
jobs:
ubuntu-2404:
name: ubuntu-2404
runs-on: Ubuntu-latest
container:
image: ubuntu:24.04
steps:
- name: Install libraries
run: |
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential g++ libomp-dev cmake git ninja-build
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build and test
run: |
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON -DCMAKE_CXX_FLAGS_RELEASE="-O3" -DCMAKE_C_FLAGS_RELEASE="-O3"
cd build
ninja
test/test.sh
ubuntu-2404-concrete:
name: ubuntu-2404-concrete
runs-on: Ubuntu-latest
container:
image: ubuntu:24.04
steps:
- name: Install libraries
run: |
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential g++ libomp-dev cmake git ninja-build
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build and test
run: |
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON -DUSE_CONCRETE=ON
cd build
ninja
test/test.sh
ubuntu-2404-raintt:
name: ubuntu-2404-raintt
runs-on: Ubuntu-latest
container:
image: ubuntu:24.04
steps:
- name: Install libraries
run: |
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential g++ libomp-dev cmake git ninja-build
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build and test
run: |
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON -DUSE_COMPRESS=ON
cd build
ninja raintt trlwerainttenc gatebootstrappingtlwe2tlweraintt
./test/raintt
./test/trlwerainttenc
./test/gatebootstrappingtlwe2tlweraintt
ubuntu-2404-tutorial:
name: ubuntu-2404-tutorial
runs-on: Ubuntu-latest
container:
image: ubuntu:24.04
steps:
- name: Install libraries
run: |
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential g++ libomp-dev cmake git ninja-build
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build and run tutorial
run: |
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TUTORIAL=ON
cd build
ninja
echo "12345" | ./tutorial/client
echo "54321" | ./tutorial/cloud
./tutorial/verify
ubuntu-2404-clang:
name: ubuntu-2404-clang
runs-on: Ubuntu-latest
container:
image: ubuntu:24.04
steps:
- name: Install libraries
run: |
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential g++ libomp-dev ninja-build clang lld wget
wget https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2-linux-x86_64.tar.gz
tar -xzvf cmake*
rm cmake*.tar.gz
mv cmake* /cmake-binary
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build and test
run: |
/cmake-binary/bin/cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER_TYPE=LLD -DENABLE_TEST=ON -DCMAKE_CXX_FLAGS_RELEASE="-O3" -DCMAKE_C_FLAGS_RELEASE="-O3"
cd build
ninja
test/test.sh