Skip to content

Commit

Permalink
fixup! ci(devnet): lock anvil version
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Oct 31, 2024
1 parent 041c418 commit 890c52b
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,10 @@ jobs:
node-version: 20
cache: "pnpm"

- name: Capture anvil version from @cartesi/rollups-contracts release
id: anvil-version
working-directory: packages/devnet
env:
GH_TOKEN: ${{ github.token }}
run: |
CARTESI_ROLLUPS_CONTRACTS_VERSION="$(jq -r '.devDependencies."@cartesi/rollups"' package.json)"
ANVIL_NIGHTLY_VERSION="$(
gh release view v${CARTESI_ROLLUPS_CONTRACTS_VERSION} \
--repo cartesi/rollups-contracts \
--json assets \
--jq '.assets[] | select(.name | contains("anvil")) | .name | capture(".*-anvil-(?<version>nightly-[a-f0-9]{40})\\.tar\\.gz").version'
)"
printf "Detected @cartesi/rollups-contracts version: %s\n" "${CARTESI_ROLLUPS_CONTRACTS_VERSION}"
printf "Detected anvil nightly version: %s\n" "${ANVIL_NIGHTLY_VERSION}"
echo "ANVIL_VERSION=${ANVIL_NIGHTLY_VERSION}" >> "$GITHUB_OUTPUT"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: ${{ steps.anvil-version.outputs.ANVIL_VERSION }}
version: nightly-2044faec64f99a21f0e5f0094458a973612d0712

- name: Install dependencies
run: pnpm install
Expand Down

0 comments on commit 890c52b

Please sign in to comment.