Skip to content

chore(ci): add conditional compliation to CI #39

chore(ci): add conditional compliation to CI

chore(ci): add conditional compliation to CI #39

Workflow file for this run

name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
feature: ["gg18", "frost", "elgamal", "default"]
steps:
- uses: actions/checkout@v3
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
version: 3.x
- name: Build ${{ matrix.feature }}
run: cargo build --no-default-features --feature ${{ matrix.feature }} --verbose
- name: Run ${{ matrix.feature }} tests
run: cargo test --no-default-features --feature ${{ matrix.feature }} --verbose