-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI - Use a new foundry cache (#2157)
* use a new foundry cache * another try * rm repo * fix integration test too * pr review
- Loading branch information
1 parent
ab3ccfb
commit 4281196
Showing
4 changed files
with
79 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# DO NOT EDIT MANUALLY! instead run `npm run build:ci` | ||
# autogenerated by `.circleci/pack.js` from contents of `jobs` .yml files | ||
version: 2.1 | ||
orbs: | ||
orbs: | ||
rust: circleci/[email protected] | ||
commands: | ||
cmd-wait-for-port: | ||
|
@@ -35,21 +35,30 @@ jobs: | |
image: ubuntu-2204:2022.04.1 | ||
docker_layer_caching: true | ||
environment: | ||
foundry_locked_commit: "232f66f9" | ||
foundry_cache_version: "1" | ||
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 | ||
|
@@ -125,22 +134,31 @@ jobs: | |
image: ubuntu-2204:2022.04.1 | ||
docker_layer_caching: true | ||
environment: | ||
foundry_locked_commit: "232f66f9" | ||
foundry_cache_version: "1" | ||
resource_class: large | ||
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 | ||
|
@@ -288,7 +306,7 @@ jobs: | |
image: ubuntu-2204:2022.04.1 | ||
docker_layer_caching: true | ||
environment: | ||
foundry_locked_commit: "232f66f9" | ||
foundry_cache_version: "1" | ||
resource_class: large | ||
steps: | ||
- restore_cache: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters