Skip to content

Commit

Permalink
fix CI test for install-foundry-zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Nov 20, 2024
1 parent d891ba6 commit ff14bcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install foundry-zksync
run: |
cd /tmp && curl -L https://raw.githubusercontent.com/matter-labs/foundry-zksync/main/install-foundry-zksync | bash
run: cp ./install-foundry-zksync /tmp/ && cd /tmp && ./install-foundry-zksync
- name: Verify installation
run: forge --version
18 changes: 13 additions & 5 deletions install-foundry-zksync
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ set -e
INSTALL_SCRIPT_URL="https://raw.githubusercontent.com/matter-labs/foundry-zksync/main/foundryup-zksync/install"
FOUNDRYUP_ZKSYNC_URL="https://raw.githubusercontent.com/matter-labs/foundry-zksync/main/foundryup-zksync/foundryup-zksync"

# Download the install script
echo "Downloading the install script..."
curl -L "$INSTALL_SCRIPT_URL" -o install
if [ -n "${CI}" ]; then
echo "Using local install script..."
else
# Download the install script
echo "Downloading the install script..."
curl -L "$INSTALL_SCRIPT_URL" -o install
fi

echo "Making install script executable..."
chmod +x ./install
Expand Down Expand Up @@ -36,8 +40,12 @@ else
echo "No shell configuration file detected. Please source your shell manually or start a new terminal session."
fi

echo "Downloading foundryup-zksync..."
curl -L "$FOUNDRYUP_ZKSYNC_URL" -o foundryup-zksync
if [ -n "${CI}" ]; then
echo "Using local foundryup-zksync script..."
else
echo "Downloading foundryup-zksync..."
curl -L "$FOUNDRYUP_ZKSYNC_URL" -o foundryup-zksync
fi

echo "Making foundryup-zksync executable..."
chmod +x ./foundryup-zksync
Expand Down

0 comments on commit ff14bcd

Please sign in to comment.