Skip to content

Commit

Permalink
chore(ci): add conditional compliation to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed Oct 18, 2023
1 parent 6a6fbf7 commit c718547
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ env:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
feature: ["gg18", "frost", "elgamal", "default"]

steps:
- uses: actions/checkout@v3
Expand All @@ -21,7 +24,7 @@ jobs:
uses: arduino/setup-protoc@v1
with:
version: 3.x
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- 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

0 comments on commit c718547

Please sign in to comment.