Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

chore: Prevent creating a release which includes uncommitted changes #6

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/publish-apple-darwin-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ jobs:
cp -r noir_stdlib/* ./dist/noir-lang/std/
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-${{ matrix.target }}.tar.gz

# Nargo appends "modified" to its build commit if the commit had uncommitted changes.
# We want to avoid this making it into a stable release so reject if this string is present.
- name: Check for dirty build
working-directory: ./noir/dist
run: |
if grep -q "modified" <<< $(./nargo --version); then
echo "::error::Building Nargo from a dirty commit" && exit 1
fi

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/publish-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ jobs:
cp -r noir_stdlib/* ./dist/noir-lang/std/
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-${{ matrix.target }}.tar.gz

# Nargo appends "modified" to its build commit if the commit had uncommitted changes.
# We want to avoid this making it into a stable release so reject if this string is present.
- name: Check for dirty build
working-directory: ./noir/dist
run: |
if grep -q "modified" <<< $(./nargo --version); then
echo "::error::Building Nargo from a dirty commit" && exit 1
fi

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/publish-x86_64-pc-windows-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ jobs:
cp -R noir_stdlib/* ./dist/noir-lang/std/
7z a -tzip nargo-${{ matrix.target }}.zip ./dist/*

# Nargo appends "modified" to its build commit if the commit had uncommitted changes.
# We want to avoid this making it into a stable release so reject if this string is present.
- name: Check for dirty build
working-directory: ./noir/dist
shell: bash
run: |
if grep -q "modified" <<< $(./nargo --version); then
echo "::error::Building Nargo from a dirty commit" && exit 1
fi

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down