Skip to content

Commit

Permalink
ci: set only nargo binary to be cached
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaMasych committed Oct 28, 2024
1 parent 0e30caa commit 2fdb507
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/noir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,15 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Cache Cargo Registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo Index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-

- name: Cache Nargo Build
- name: Cache Nargo Binary
uses: actions/cache@v4
id: nargo-cache
with:
path: ~/.nargo
key: ${{ runner.os }}-nargo-${{ hashFiles('Cargo.lock', 'noirup') }}
path: ~/.nargo/bin/nargo
key: ${{ runner.os }}-nargo-binary
restore-keys: |
${{ runner.os }}-nargo-
${{ runner.os }}-nargo-binary
- name: Create `.nargo/bin` directory
shell: bash
Expand All @@ -49,6 +34,7 @@ jobs:
echo "${HOME}/.nargo/bin" >> $GITHUB_PATH
- name: Install Noir
if: steps.nargo-cache.outputs.cache-hit != 'true'
run: |
curl -L https://raw.githubusercontent.com/noir-lang/noirup/main/noirup | bash -s -- \
-C 51ae1b324cd73fdb4fe3695b5d483a44b4aff4a9
Expand Down

0 comments on commit 2fdb507

Please sign in to comment.