From 0860440468fc0b3a5f22dad9cd0c58634d28a1fd Mon Sep 17 00:00:00 2001 From: Sergey Kaunov Date: Sat, 23 Sep 2023 15:18:40 +0300 Subject: [PATCH] Switching to David's version --- .github/workflows/rust.yml | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a0c5636..cfe3f03 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,30 +1,14 @@ -name: Rust - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always +name: Rust test suite +on: [push, pull_request] jobs: - build: - + test: + name: cargo test runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Build `rust-k256` - run: cargo build --verbose - working-directory: ./rust-k256 - - name: Run tests `rust-k256` - run: cargo test --verbose - working-directory: ./rust-k256 - - name: Build `rust-arkworks` - run: cargo build --verbose - working-directory: ./rust-arkworks - - name: Run tests `rust-k256` - run: cargo test --verbose - working-directory: ./rust-arkworks + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: cargo test --all-features + working-directory: ./rust-k256 + - run: cargo test --all-features + working-directory: ./rust-arkworks