12
12
CARGO_TERM_COLOR : always
13
13
14
14
jobs :
15
- build :
15
+ build-arkworks :
16
16
runs-on : ubuntu-latest
17
- strategy :
18
- matrix :
19
- rust : [stable]
20
-
21
17
steps :
22
18
- uses : actions/checkout@v2
23
19
- name : Install protobuf-compiler
@@ -26,26 +22,52 @@ jobs:
26
22
uses : actions-rs/toolchain@v1
27
23
with :
28
24
profile : minimal
29
- toolchain : ${{ matrix.rust }}
25
+ toolchain : stable
30
26
override : true
31
27
components : rustfmt, clippy
32
- - name : Build
28
+ - name : Build with arkworks
33
29
run : cargo build --release --verbose --features arkworks
34
- - name : Test
30
+ - name : Test with arkworks
35
31
run : cargo test --release --verbose --features arkworks
36
- - name : Lint
32
+ - name : Lint with arkworks
37
33
run : cargo clippy --release --features arkworks
38
- # - name: Format check (verbose)
39
- # run: cargo fmt -- --check --verbose $(find . -name '*.rs' -not -path './src/protobuf/*')
40
-
41
- # New steps for Docker build
42
- - name : Set up Docker Buildx
43
- uses : docker/setup-buildx-action@v1
44
- - name : Build Docker image
34
+ - name : Build Docker image with arkworks
45
35
uses : docker/build-push-action@v2
46
36
with :
47
37
context : .
48
38
push : false
49
- tags : drand:latest
39
+ tags : drand:arkworks
40
+ build-args : |
41
+ FEATURES=arkworks
42
+ cache-from : type=gha
43
+ cache-to : type=gha,mode=max
44
+
45
+ build-blstrs :
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - uses : actions/checkout@v2
49
+ - name : Install protobuf-compiler
50
+ run : sudo apt-get update && sudo apt-get install -y protobuf-compiler
51
+ - name : Install Rust
52
+ uses : actions-rs/toolchain@v1
53
+ with :
54
+ profile : minimal
55
+ toolchain : stable
56
+ override : true
57
+ components : rustfmt, clippy
58
+ - name : Build with blstrs
59
+ run : cargo build --release --verbose --features blstrs
60
+ - name : Test with blstrs
61
+ run : cargo test --release --verbose --features blstrs
62
+ - name : Lint with blstrs
63
+ run : cargo clippy --release --features blstrs
64
+ - name : Build Docker image with blstrs
65
+ uses : docker/build-push-action@v2
66
+ with :
67
+ context : .
68
+ push : false
69
+ tags : drand:blstrs
70
+ build-args : |
71
+ FEATURES=blstrs
50
72
cache-from : type=gha
51
73
cache-to : type=gha,mode=max
0 commit comments