From c718547ec77883e114276ca67b2f7630295c5a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20Dufka?= Date: Wed, 18 Oct 2023 10:50:33 +0200 Subject: [PATCH] chore(ci): add conditional compliation to CI --- .github/workflows/rust.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 939567f..b9e7cd3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,6 +8,9 @@ env: jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + feature: ["gg18", "frost", "elgamal", "default"] steps: - uses: actions/checkout@v3 @@ -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 \ No newline at end of file + - 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