Skip to content

Commit

Permalink
chore: small ci refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
petscheit committed Sep 5, 2024
1 parent ebde907 commit 57f03e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/add-to-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
paths:
- '**/*.cairo'

jobs:
test:
Expand Down
6 changes: 1 addition & 5 deletions tools/make/fuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,8 @@ cairo-compile --cairo_path="packages/eth_essentials" "$cairo_file" --output "bui
# Export the function so it's accessible to subshells spawned by parallel
export -f run_tests

# Determine the number of available cores
N=6
echo "Using $N cores for parallel execution."

# Run the same test file repeatedly, maintaining N parallel instances
seq inf | parallel -j$N --halt soon,fail=1 run_tests $cairo_file
seq inf | parallel --halt soon,fail=1 run_tests $cairo_file

# Capture and return the exit status of parallel
exit_status=$?
Expand Down
2 changes: 1 addition & 1 deletion tools/make/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ python-dotenv
pysha3
web3==5.28.0
trie
black
black

0 comments on commit 57f03e9

Please sign in to comment.