Skip to content

Commit

Permalink
chore: remove debug artifacts from published artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 26, 2023
1 parent 10d477a commit cef194e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-pr-rebuild-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ jobs:

- name: Check for changes in acir_artifacts directory
id: check_changes
if: ${{ github.ref_name }} == "master"
run: |
if [ ${{ github.ref_name }} == "master" ]; then
git diff --quiet tooling/nargo_cli/tests/acir_artifacts/ || echo "::set-output name=changes::true"
fi
git diff --quiet tooling/nargo_cli/tests/acir_artifacts/ || echo "::set-output name=changes::true"
- name: Create or Update PR
if: steps.check_changes.outputs.changes == 'true'
Expand Down
7 changes: 4 additions & 3 deletions tooling/nargo_cli/tests/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ for dir in $base_path/*; do
# Delete the JSON file after extracting bytecode field
rm ./target/${dir_name}.json

# Delete the target directory in acir_artifacts if it exists
# Clear the target directory in acir_artifacts
if [ -d "$current_dir/acir_artifacts/$dir_name/target" ]; then
rm -r "$current_dir/acir_artifacts/$dir_name/target"
fi
mkdir $current_dir/acir_artifacts/$dir_name/target

# Move the target directory to the corresponding directory in acir_artifacts
mv ./target/ $current_dir/acir_artifacts/$dir_name/
# Move the artifacts from the target directory to the corresponding directory in acir_artifacts
mv ./target/*.gz $current_dir/acir_artifacts/$dir_name/target/

cd $base_path
fi
Expand Down

0 comments on commit cef194e

Please sign in to comment.