Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Sep 28, 2023
1 parent 4770c8f commit 9a80262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-anchor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
with:
path: |
./target/
key: build-${{ runner.os }}-${{env.ANCHOR_VERSION}}-${{env.ANCHOR_SHA}}-v0001-${{ inputs.devnet }}-${{ inputs.testing }}-${{ hashFiles('./programs/**/**') }}-${{ inputs.program }}
key: build-${{ runner.os }}-${{env.ANCHOR_VERSION}}-${{env.ANCHOR_SHA}}-v0002-${{ inputs.devnet }}-${{ inputs.testing }}-${{ hashFiles('./programs/**/**') }}-${{ inputs.program }}
- run: ${{ inputs.testing == 'true' && 'TESTING=true' || '' }} ~/.cargo/bin/anchor build ${{ (inputs.program != '' && '-p') || '' }} ${{ inputs.program || '' }} ${{ inputs.devnet == 'true' && '-- --features devnet' || '' }}
if: steps.cache-anchor-build.outputs.cache-hit != 'true'
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/setup-anchor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:
with:
path: |
~/.cargo/bin/anchor
key: anchor-cli-${{ runner.os }}-v0002-${{ env.ANCHOR_VERSION }}
key: anchor-cli-${{ runner.os }}-v0002-${{ env.ANCHOR_VERSION }}-${{ env.ANCHOR_SHA }}
# if ANCHOR_VERSION is 0, then install the anchor-cli from source
- run: if [ $ANCHOR_VERSION -eq 0 ]; then cargo install --git https://github.com/coral-xyz/anchor anchor-cli --locked --force; else cargo install --git https://github.com/coral-xyz/anchor/tree/$ANCHOR_SHA --tag "v$ANCHOR_VERSION" anchor-cli --locked; fi
shell: bash
Expand Down

0 comments on commit 9a80262

Please sign in to comment.