-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ci_lib.sh
executable file
·33 lines (30 loc) · 1023 Bytes
/
.ci_lib.sh
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
#!/bin/bash
set -exo pipefail
git clone https://github.com/openfheorg/openfhe-development.git OpenFHE
echo "Build OpenFHE v1.1.2"
if [ ! -d "OpenFHE/build" ] ; then
cd ./OpenFHE
git reset --hard b2869ae
mkdir -p build && cd build
cmake -DBUILD_UNITTESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_BENCHMARKS=OFF ..
make -j 10
sudo make install
sudo ln -s /usr/local/lib/libOpenFHEcore.so.1 /usr/lib/libOpenFHEcore.so.1
sudo ln -s /usr/local/lib/libOPENFHEbinfhe.so.1 /usr/lib/libOPENFHEbinfhe.so.1
sudo ln -s /usr/local/lib/libOPENFHEpke.so.1 /usr/lib/libOPENFHEpke.so.1
cd ../..
else
echo "Found in cache"
fi
git clone https://github.com/microsoft/SEAL.git
echo "Build SEAL v4.1.1"
if [ ! -d "SEAL/build" ] ; then
cd ./SEAL
git reset --hard 206648d0e4634e5c61dcf9370676630268290b59
cmake -S . -B build -DSEAL_BUILD_BENCH=OFF -DSEAL_BUILD_EXAMPLES=OFF -DSEAL_BUILD_TESTS=OFF
cmake --build build
sudo cmake --install build
cd ..
else
echo "Found in cache"
fi