Skip to content
Open
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: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ name: CI

on:
push:
branches: [master]
branches:
- "*"
pull_request:
branches:
- "*"
schedule:
- cron: "40 2 * * *" # Run 40 mins after nightly noir release (which happens at 2 AM UTC)
- cron: "40 2 * * *"

permissions:
contents: read
Expand Down Expand Up @@ -75,6 +78,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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -114,3 +124,4 @@ All inputs are optional.
</table>

<br>

15 changes: 14 additions & 1 deletion noirup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -211,6 +223,7 @@ main() {
say "done"
}


usage() {
cat 1>&2 <<EOF
The installer for Nargo.
Expand Down