Skip to content

Commit

Permalink
Fix foundry release url
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Apr 7, 2023
1 parent 650785c commit ab323c8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,27 @@ commands:
install_foundry:
description: "Install Foundry."
parameters:
version:
type: string
default: "nightly"
steps:
- run:
name: Install foundry
command: |
# Note: Currently Foundry only has nightly builds and there is no release checksum
wget https://github.com/foundry-rs/foundry/releases/download/nightly/foundry_nightly_linux_amd64.tar.gz --output-document /tmp/foundry.tar.gz
FOUNDRY_REPO="foundry-rs/foundry"
FOUNDRY_VERSION=<< parameters.version >>
FOUNDRY_RELEASE_SHA=$(curl \
--silent \
--fail \
--show-error \
"https://api.github.com/repos/${FOUNDRY_REPO}/git/refs/tags/${FOUNDRY_VERSION}" \
| jq --raw-output .object.sha \
)
FOUNDRY_RELEASE_TAG="nightly-${FOUNDRY_RELEASE_SHA}"
wget \
--output-document /tmp/foundry.tar.gz \
"https://github.com/${FOUNDRY_REPO}/releases/download/${FOUNDRY_RELEASE_TAG}/foundry_${FOUNDRY_VERSION}_linux_amd64.tar.gz"
sudo tar --extract --gzip --file /tmp/foundry.tar.gz --directory /usr/local/bin
defaults:
Expand Down

0 comments on commit ab323c8

Please sign in to comment.