-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
52 lines (45 loc) · 1.38 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Noir Toolchain Install
description: Install the Noir toolchain
branding:
icon: activity
color: gray-dark
inputs:
toolchain:
description: Noir version to install. Defaults to the latest stable version.
default: stable
required: false
runs:
using: composite
steps:
- name: Check for unsupported OS (Windows)
if: runner.os == 'Windows'
shell: bash
run: echo "::error::Noirup Github action does not currently support Windows" && exit 1
- name: Parse toolchain
id: parse
run: |
: parse toolchain version
if [[ $toolchain == "stable" ]]; then
: By default, noirup installs the latest stable version
elif [[ $toolchain == "nightly" ]]; then
echo "toolchain="--nightly"" >> $GITHUB_OUTPUT
else
echo "toolchain="--version $toolchain"" >> $GITHUB_OUTPUT
fi
env:
toolchain: ${{inputs.toolchain}}
shell: bash
- name: Cache Barretenberg transcript
uses: actions/cache@v3
with:
path: ~/noir_cache/ignition/transcript00.dat
key: noir_cache
- name: Create `.nargo/bin` directory
shell: bash
run: |
mkdir -p $HOME/.nargo/bin
echo "${HOME}/.nargo/bin" >> $GITHUB_PATH
- name: Run Noirup
shell: bash
run:
${{ github.action_path }}/noirup ${{steps.parse.outputs.toolchain}}