From 77b2d51834115ece013f373d2323e62c1fdfbde0 Mon Sep 17 00:00:00 2001 From: lonerapier Date: Tue, 29 Oct 2024 15:21:51 +0530 Subject: [PATCH] delete r1cs checks --- .github/workflows/artifacts.yaml | 60 +------------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index 7dfaea2..c96c300 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -70,54 +70,6 @@ jobs: fi done - - name: Check for R1CS changes and update version - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - id: version_check - run: | - NEEDS_BUMP=false - - # Compare R1CS files if previous artifacts exist - if [ -d "previous_artifacts" ]; then - for r1cs in artifacts/*/*.r1cs; do - filename=$(basename $r1cs) - dirname=$(dirname $r1cs) - basedir=$(basename $dirname) - if [ -f "previous_artifacts/$basedir/$filename" ]; then - if ! cmp -s "$r1cs" "previous_artifacts/$basedir/$filename"; then - echo "R1CS change detected in $filename" - NEEDS_BUMP=true - break - fi - else - echo "New R1CS file detected: $filename" - NEEDS_BUMP=true - break - fi - done - else - echo "No previous artifacts found, will bump version" - NEEDS_BUMP=true - fi - - if [ "$NEEDS_BUMP" = "true" ]; then - # Split version into components - IFS='.' read -r -a version_parts <<< "$CURRENT_VERSION" - MAJOR="${version_parts[0]}" - MINOR="${version_parts[1]}" - PATCH="${version_parts[2]}" - - # Increment minor version - NEW_VERSION="$MAJOR.$((MINOR + 1)).0" - echo "Updating version to $NEW_VERSION" - - # Update package.json - npm version $NEW_VERSION --no-git-tag-version - - echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV - else - echo "NEW_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV - fi - - name: Create release artifacts run: | cd artifacts @@ -141,14 +93,4 @@ jobs: files: circom-artifacts-v${{ env.VERSION }}.zip tag_name: ${{ github.ref }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Commit version bump if needed - - name: Commit version bump - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && env.NEW_VERSION != env.CURRENT_VERSION - run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git add package.json - git commit -m "chore: bump version to ${{ env.NEW_VERSION }} [skip ci]" - git push \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file