-
Notifications
You must be signed in to change notification settings - Fork 27
102 lines (96 loc) · 2.8 KB
/
onpush-build-ubuntu.yml
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
# Build actions for every push on ubuntu
name: zeth-ci-push-build-ubuntu
on:
push:
jobs:
# Job to build and cache the grpc libraries. The grpc build directory is
# populated and cached so that all other jobs can mark this job as a
# prerequisite and just run `make install`.
#
# NOTE: the version number here (in `key` and in script arguments) must be
# kept in sync with the key used by the jobs.
build-grpc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.44.x-${{ runner.os }}
path: depends/grpc
- name: Build grpc
run: if ! [ -d depends/grpc ] ; then scripts/install-grpc /usr v1.44.x ; fi
build-linux:
runs-on: ubuntu-20.04
needs: build-grpc
strategy:
matrix:
config: [ Debug, Release ]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.44.x-${{ runner.os }}
path: depends/grpc
- name: Cache pip (for mpc tests)
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: build-linux-pip-${{ hashFiles('**/setup.py') }}-${{ runner.os }}
- name: Install dependencies
run: |
INSTALL_ONLY=1 scripts/install-grpc /usr v1.44.x
sudo apt install -y ccache
- name: Execute
run: CI_CHECK_FORMAT=1 CI_MPC_TESTS=1 CI_CONFIG=${{ matrix.config }} scripts/ci build
build-linux-pghr13:
runs-on: ubuntu-20.04
needs: build-grpc
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.44.x-${{ runner.os }}
path: depends/grpc
- name: Install dependencies
run: |
INSTALL_ONLY=1 scripts/install-grpc /usr v1.44.x
sudo apt install -y ccache
- name: Execute
run: CI_CONFIG=Release CI_ZKSNARK=PGHR13 scripts/ci build
build-linux-bls12-377:
runs-on: ubuntu-20.04
needs: build-grpc
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.44.x-${{ runner.os }}
path: depends/grpc
- name: Install dependencies
run: |
INSTALL_ONLY=1 scripts/install-grpc /usr v1.44.x
sudo apt install -y ccache
- name: Execute
run: CI_CONFIG=Release CI_CURVE=BLS12_377 scripts/ci build