Skip to content

add features is dockerfile and separate github action for features #15

add features is dockerfile and separate github action for features

add features is dockerfile and separate github action for features #15

Workflow file for this run

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
uses: docker/build-push-action@v2
with:
context: .
push: false
tags: drand:arkworks
build-args: |
FEATURES=arkworks
cache-from: type=gha
cache-to: type=gha,mode=max
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
uses: docker/build-push-action@v2
with:
context: .
push: false
tags: drand:blstrs
build-args: |
FEATURES=blstrs
cache-from: type=gha
cache-to: type=gha,mode=max