From 53514ca8e645c227ce26847078459cc1841733d3 Mon Sep 17 00:00:00 2001 From: riordanp Date: Wed, 14 Dec 2022 14:33:34 +0000 Subject: [PATCH] Pass github env to verifiable build (#26) --- .github/workflows/ci-verifiable-build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-verifiable-build.yml b/.github/workflows/ci-verifiable-build.yml index 7828235..a4ccab3 100644 --- a/.github/workflows/ci-verifiable-build.yml +++ b/.github/workflows/ci-verifiable-build.yml @@ -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: |