Skip to content

Commit

Permalink
Pass github env to verifiable build (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
riordanp authored Dec 14, 2022
1 parent b7af74a commit 53514ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci-verifiable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

# - name: Install Anchor CLI
# run: |
# npm install -g @project-serum/anchor-cli@${{ env.ANCHOR_CLI_VERSION }}
# anchor --version

# Install CLI from a fork allowing env passthrough to docker
- name: Install Anchor CLI
run: |
npm install -g @project-serum/anchor-cli@${{ env.ANCHOR_CLI_VERSION }}
cargo install --git https://github.com/riordanp/anchor.git --rev 0bd8aba891639651cefc4aa0fa0f15174958e725 anchor-cli --locked
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 GITHUB_SHA=${{ github.sha }} GITHUB_REF_NAME=${{ github.ref_name }}
- name: Generate Checksum
run: |
Expand Down

0 comments on commit 53514ca

Please sign in to comment.