Skip to content

Commit adfbff3

Browse files
committed
performance(ci): Made cairo tests run in release.
1 parent de768f3 commit adfbff3

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,30 +123,19 @@ jobs:
123123
- uses: Swatinem/rust-cache@v2
124124
- run: scripts/cairo_fmt.sh --check
125125

126-
parallel-cairo-tests:
126+
# Checks that all Cairo code tests run correctly.
127+
cairotest:
127128
runs-on: ubuntu-latest
128-
strategy:
129-
matrix:
130-
cmd:
131-
- corelib/
132-
- tests/bug_samples --starknet
133-
- crates/cairo-lang-starknet/cairo_level_tests/ --starknet
134129
steps:
135130
- uses: actions/checkout@v6
136131
- uses: dtolnay/rust-toolchain@stable
137132
- uses: Swatinem/rust-cache@v2
138133
- run: |
139-
cargo run --profile=ci-dev --bin cairo-test -- ${{ matrix.cmd }}
140-
# Checks that all Cairo code tests run correctly.
141-
cairotest:
142-
if: ${{ always() }}
143-
needs: parallel-cairo-tests
144-
runs-on: ubuntu-latest
145-
steps:
146-
- if: needs.parallel-cairo-tests.result == 'success'
147-
run: exit 0
148-
- if: needs.parallel-cairo-tests.result != 'success'
149-
run: exit 1
134+
cargo run --profile=release --bin cairo-test -- corelib/
135+
- run: |
136+
cargo run --profile=release --bin cairo-test -- tests/bug_samples --starknet
137+
- run: |
138+
cargo run --profile=release --bin cairo-test -- crates/cairo-lang-starknet/cairo_level_tests/ --starknet
150139
151140
# Checks that error codes are not duplicated.
152141
error-code-check:

.github/workflows/nightly.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ jobs:
3030
- run: >
3131
scripts/clippy.sh
3232
33+
cairotest:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v6
37+
- uses: dtolnay/rust-toolchain@stable
38+
- uses: Swatinem/rust-cache@v2
39+
- run: |
40+
cargo run --profile=ci-dev --bin cairo-test -- corelib/
41+
- run: |
42+
cargo run --profile=ci-dev --bin cairo-test -- tests/bug_samples --starknet
43+
- run: |
44+
cargo run --profile=ci-dev --bin cairo-test -- crates/cairo-lang-starknet/cairo_level_tests/ --starknet
45+
3346
docs:
3447
runs-on: ubuntu-latest
3548
steps:

0 commit comments

Comments
 (0)