Skip to content

Commit

Permalink
Add verifiable build action
Browse files Browse the repository at this point in the history
  • Loading branch information
brittcyr committed Mar 30, 2023
1 parent 3440cff commit bbd8dde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-verified.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

env:
ANCHOR_CLI_VERSION: 0.26.0
ANCHOR_CLI_VERSION: 0.27.0

jobs:
build:
Expand All @@ -18,12 +18,12 @@ jobs:

- name: Install Anchor CLI
run: |
npm install -g @project-serum/anchor-cli@${{ env.ANCHOR_CLI_VERSION }}
npm install -g @coral-xyz/anchor-cli@${{ env.ANCHOR_CLI_VERSION }}
anchor --version
- name: Verifiable Build
run: |
echo "APP_NAME=$(cargo metadata --no-deps --format-version 1 | jq --raw-output '.packages[0].name')" >> $GITHUB_ENV
anchor build --verifiable
anchor build --verifiable --docker-image projectserum/build:v0.27.0
- name: Generate Checksum
run: |
echo "CHECKSUM=$(sha256sum ./target/verifiable/${{ env.APP_NAME }}.so | head -c 64)" >> $GITHUB_ENV
Expand Down

0 comments on commit bbd8dde

Please sign in to comment.