Merge pull request #12 from yugocabrio/clean1216 #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install Noir toolchain 1.0.0-beta.3 | |
| uses: noir-lang/noirup@v0.1.2 | |
| with: | |
| toolchain: "1.0.0-beta.3" | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Generate proofs & VKs | |
| run: tests/build_circuits.sh | |
| - name: Run tests (default features) | |
| run: cargo test --verbose | |
| - name: Run tests (std) | |
| run: cargo test --features std --verbose | |
| - name: Run tests (std + soroban-precompile) | |
| run: cargo test --features "std soroban-precompile" --verbose |