Skip to content

Commit

Permalink
fix ci job (test-deploy-script)
Browse files Browse the repository at this point in the history
  • Loading branch information
leomassazza committed Oct 20, 2023
1 parent a6d9e96 commit d6b3be1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 18 deletions.
27 changes: 18 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,26 @@ jobs:
steps:
- restore_cache:
keys:
- foundry-bin-${foundry_locked_commit}-12
- foundry-bin-latest-${foundry_cache_version}
- rust/install: {}
- run: |
if [ ! -d ~/.foundry ]; then
curl -O https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && chmod +x ./foundryup
./foundryup -C $foundry_locked_commit
fi
rm -rf *
echo 'export PATH="$PATH:$HOME/.foundry/bin"' >> $BASH_ENV
- run:
name: "Install Foundry"
working_directory: ~/
environment:
SHELL: /bin/bash
command: |-
export PATH="$PATH:$HOME/.foundry/bin"
echo 'export PATH=$PATH:$HOME/.foundry/bin' >> $BASH_ENV
if command -v anvil; then
echo "Anvil already installed"
anvil --version
else
curl -L https://foundry.paradigm.xyz | bash
foundryup
fi
rm -rf *
- save_cache:
key: foundry-bin-${foundry_locked_commit}-12
key: foundry-bin-latest-${foundry_cache_version}
paths:
- ~/.foundry/bin
- checkout
Expand Down
28 changes: 19 additions & 9 deletions .circleci/src/jobs/job-test-deploy-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,28 @@ steps:
# get foundry
- restore_cache:
keys:
- foundry-bin-${foundry_locked_commit}-12
- foundry-bin-latest-${foundry_cache_version}
- rust/install: {}
- run: |
if [ ! -d ~/.foundry ]; then
curl -O https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && chmod +x ./foundryup
./foundryup -C $foundry_locked_commit
fi
rm -rf *
echo 'export PATH="$PATH:$HOME/.foundry/bin"' >> $BASH_ENV
- run:
name: "Install Foundry"
working_directory: ~/
environment:
SHELL: /bin/bash
command: |-
export PATH="$PATH:$HOME/.foundry/bin"
echo 'export PATH=$PATH:$HOME/.foundry/bin' >> $BASH_ENV
if command -v anvil; then
echo "Anvil already installed"
anvil --version
else
curl -L https://foundry.paradigm.xyz | bash
foundryup
fi
rm -rf *
- save_cache:
key: foundry-bin-${foundry_locked_commit}-12
key: foundry-bin-latest-${foundry_cache_version}
paths:
- ~/.foundry/bin

Expand Down

0 comments on commit d6b3be1

Please sign in to comment.