From adfbff3f524653b5e065a8ef4c1628f8cfaf4fcd Mon Sep 17 00:00:00 2001 From: Ori Ziv Date: Sun, 1 Feb 2026 12:48:04 +0200 Subject: [PATCH] performance(ci): Made cairo tests run in release. --- .github/workflows/ci.yml | 25 +++++++------------------ .github/workflows/nightly.yml | 13 +++++++++++++ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13de29295f0..989a8e53b5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,30 +123,19 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: scripts/cairo_fmt.sh --check - parallel-cairo-tests: + # Checks that all Cairo code tests run correctly. + cairotest: runs-on: ubuntu-latest - strategy: - matrix: - cmd: - - corelib/ - - tests/bug_samples --starknet - - crates/cairo-lang-starknet/cairo_level_tests/ --starknet steps: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - run: | - cargo run --profile=ci-dev --bin cairo-test -- ${{ matrix.cmd }} - # Checks that all Cairo code tests run correctly. - cairotest: - if: ${{ always() }} - needs: parallel-cairo-tests - runs-on: ubuntu-latest - steps: - - if: needs.parallel-cairo-tests.result == 'success' - run: exit 0 - - if: needs.parallel-cairo-tests.result != 'success' - run: exit 1 + cargo run --profile=release --bin cairo-test -- corelib/ + - run: | + cargo run --profile=release --bin cairo-test -- tests/bug_samples --starknet + - run: | + cargo run --profile=release --bin cairo-test -- crates/cairo-lang-starknet/cairo_level_tests/ --starknet # Checks that error codes are not duplicated. error-code-check: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 794a2bb3117..f5dfbec1cb5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,6 +30,19 @@ jobs: - run: > scripts/clippy.sh + cairotest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - run: | + cargo run --profile=ci-dev --bin cairo-test -- corelib/ + - run: | + cargo run --profile=ci-dev --bin cairo-test -- tests/bug_samples --starknet + - run: | + cargo run --profile=ci-dev --bin cairo-test -- crates/cairo-lang-starknet/cairo_level_tests/ --starknet + docs: runs-on: ubuntu-latest steps: