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 81510bd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 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
5 changes: 3 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3 # Update to v3
with:
fetch-depth: 0 # Fetch all history and tags

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
bumpversion patch --allow-dirty
NEW_VERSION=$(python setup.py --version)
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
git push --tags
git push origin "v${NEW_VERSION}" # Push only the new tag
git push
- name: Build and push Docker image
Expand All @@ -97,6 +97,7 @@ jobs:
dataprocessor/hdp-cairo:v${{ env.NEW_VERSION }}
platforms: linux/amd64,linux/arm64
push: true
context: https://github.com/HerodotusDev/hdp-cairo.git#main

- name: Debug output
run: |
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 81510bd

Please sign in to comment.