-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathx.sh
More file actions
executable file
·50 lines (44 loc) · 1.21 KB
/
x.sh
File metadata and controls
executable file
·50 lines (44 loc) · 1.21 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
#!/bin/bash
# Exit on any error and make pipelines fail if any command fails.
set -e
set -o pipefail
# If you're not on Linux, warn that the ELF and VKey will be different.
if [ "$(uname)" != "Linux" ]; then
echo "WARNING: You are not on Linux. The ELF and VKey will be different."
fi
# Parse command line arguments.
USE_DOCKER=""
while [[ $# -gt 0 ]]; do
case $1 in
--docker)
USE_DOCKER="--docker"
shift
;;
*)
echo "Unknown option $1"
echo "Usage: $0 [--docker]"
exit 1
;;
esac
done
# Build the STF program.
echo "Building STF program..."
cd programs/vapp/stf
cargo prove build --elf-name spn-vapp-stf $USE_DOCKER --tag v5.1.0 --output-directory ../../../elf
cd ../../..
echo "Done!"
echo ""
# Build the aggregation program.
echo "Building aggregation program..."
cd programs/vapp/aggregation
cargo prove build --elf-name spn-vapp-aggregation $USE_DOCKER --tag v5.1.0 --output-directory ../../../elf
cd ../../..
echo "Done!"
echo ""
# Build the fibonacci example program.
echo "Building fibonacci program..."
cd programs/examples/fibonacci
cargo prove build --elf-name spn-fibonacci-program $USE_DOCKER --tag v5.1.0 --output-directory ../../../elf
cd ../../..
echo "Done!"
echo ""