-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (53 loc) · 1.87 KB
/
prod.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
name: Drand
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build-arkworks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install protobuf-compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Build with arkworks
run: cargo build --release --verbose --features arkworks
- name: Test with arkworks
run: cargo test --release --verbose --features arkworks
- name: Lint with arkworks
run: cargo clippy --release --features arkworks
- name: Build Docker image with arkworks
run: docker build --build-arg FEATURES=arkworks -t drand:arkworks .
build-blstrs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install protobuf-compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Build with blstrs
run: cargo build --release --verbose --features blstrs
- name: Test with blstrs
run: cargo test --release --verbose --features blstrs
- name: Lint with blstrs
run: cargo clippy --release --features blstrs
- name: Build Docker image with blstrs
run: docker build --build-arg FEATURES=blstrs -t drand:blstrs .