diff --git a/.github/workflows/add-to-registry.yml b/.github/workflows/add-to-registry.yml index d0536c8f..4b56a8fc 100644 --- a/.github/workflows/add-to-registry.yml +++ b/.github/workflows/add-to-registry.yml @@ -3,6 +3,8 @@ on: push: branches: - main + paths: + - '**/*.cairo' jobs: test: diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 140ac19a..05d9aba5 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -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 @@ -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 @@ -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: | diff --git a/tools/make/fuzzer.sh b/tools/make/fuzzer.sh index 129ffaa0..f74e0c7f 100755 --- a/tools/make/fuzzer.sh +++ b/tools/make/fuzzer.sh @@ -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=$? diff --git a/tools/make/requirements.txt b/tools/make/requirements.txt index f3b41b6e..abdbd5ba 100644 --- a/tools/make/requirements.txt +++ b/tools/make/requirements.txt @@ -6,4 +6,4 @@ python-dotenv pysha3 web3==5.28.0 trie -black \ No newline at end of file +black