From 9952f879e3df52a0597a719d5749b8bd9c085f59 Mon Sep 17 00:00:00 2001 From: cypriansakwa Date: Sat, 13 Sep 2025 22:19:10 +0300 Subject: [PATCH 1/7] Add robust version command to noirup script --- noirup | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/noirup b/noirup index b1045bd..b767429 100755 --- a/noirup +++ b/noirup @@ -5,7 +5,19 @@ NARGO_HOME=${NARGO_HOME-"$HOME/.nargo"} NARGO_BIN_DIR="$NARGO_HOME/bin" BINARIES=("nargo" "noir-profiler" "noir-inspector") - +if [[ "$1" == "version" ]]; then + if [[ -f "$(dirname "$0")/version.txt" ]]; then + echo -n "noirup " + cat "$(dirname "$0")/version.txt" + else + # fallback for devs working in git repo + TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "unknown") + HASH=$(git rev-parse --short HEAD 2>/dev/null || echo "unknown") + DATE=$(date +%Y-%m-%d) + echo "noirup $TAG ($HASH $DATE)" + fi + exit 0 +fi main() { need_cmd git need_cmd curl @@ -211,6 +223,7 @@ main() { say "done" } + usage() { cat 1>&2 < Date: Mon, 15 Sep 2025 23:47:20 +0300 Subject: [PATCH 2/7] Update README with version check instructions --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ff32ee5..e853813 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,16 @@ curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/install | bash ## Usage +To check which version of noirup you have installed: + +```sh +noirup version +``` +Example output: +```sh +noirup 0.1.4 (7dbe69c 2025-02-20) +``` + To install the **nightly** version: ```sh From aea75bd52cc0a77d970360752d3dc6563503d9b7 Mon Sep 17 00:00:00 2001 From: cypriansakwa Date: Tue, 14 Oct 2025 07:28:32 +0300 Subject: [PATCH 3/7] update workflow --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 421a09e..a0cd3ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,8 @@ jobs: env: INSTALL_URL: https://raw.githubusercontent.com/${{ env.REPO }}/${{ env.REF }}/install NOIRUP_BIN_URL: https://raw.githubusercontent.com/${{ env.REPO }}/${{ env.REF }}/noirup + - name: Check noirup version + run: noirup version - name: Install nargo with noirup run: noirup ${{steps.parse.outputs.toolchain}} - name: Check nargo installation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbe8c7c..46e1871 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,9 @@ jobs: with: ref: ${{ needs.release-please.outputs.tag-name }} + - name: Update version.txt + run: echo "${{ needs.release-please.outputs.tag-name }}" > version.txt + - name: Upload files to release uses: svenstaro/upload-release-action@v2 with: From 557f0c77e35f9879ceedc39ac609e1fc3dc5cb4e Mon Sep 17 00:00:00 2001 From: cypriansakwa Date: Tue, 14 Oct 2025 07:41:05 +0300 Subject: [PATCH 4/7] update workflow --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0cd3ac..9122612 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,9 @@ name: CI on: push: - branches: [master] + branches: [main] pull_request: + branches: [main] schedule: - cron: "40 2 * * *" # Run 40 mins after nightly noir release (which happens at 2 AM UTC) From abcc27852a0b2f42477a4935b1829cff47ec6c2f Mon Sep 17 00:00:00 2001 From: cypriansakwa Date: Tue, 14 Oct 2025 07:49:36 +0300 Subject: [PATCH 5/7] update workflow --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9122612..302d039 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,13 @@ name: CI on: push: - branches: [main] + branches: + - "*" pull_request: - branches: [main] + branches: + - "*" schedule: - - cron: "40 2 * * *" # Run 40 mins after nightly noir release (which happens at 2 AM UTC) + - cron: "40 2 * * *" permissions: contents: read From 0eec7e408d8d91e31001d423230e76ada45d2ce4 Mon Sep 17 00:00:00 2001 From: cypriansakwa Date: Tue, 14 Oct 2025 07:59:18 +0300 Subject: [PATCH 6/7] Trigger CI run From 3b066b85e457b1690bd84ebd89839d519c9ce48c Mon Sep 17 00:00:00 2001 From: cypriansakwa Date: Tue, 14 Oct 2025 08:01:41 +0300 Subject: [PATCH 7/7] Trigger CI run --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e853813..27f16ad 100644 --- a/README.md +++ b/README.md @@ -124,3 +124,4 @@ All inputs are optional.
+