-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix circular dependency in build stage
Signed-off-by: Tomás Migone <[email protected]>
- Loading branch information
Showing
7 changed files
with
46 additions
and
7 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# List of packages to build - order matters! | ||
packages=( | ||
"packages/eslint-graph-config" | ||
# "packages/solhint-graph-config" -- disabled since it doesn't have a build script | ||
# "packages/solhint-plugin-graph" -- disabled since it doesn't have a build script | ||
"packages/contracts" | ||
"packages/horizon" | ||
"packages/subgraph-service" | ||
"packages/hardhat-graph-protocol" | ||
"packages/data-edge" | ||
"packages/sdk" | ||
"packages/token-distribution" | ||
) | ||
|
||
for package in "${packages[@]}"; do | ||
echo -e "\n\n==== Building $package..." | ||
|
||
cd "$package" || { echo "Failed to navigate to $package"; exit 1; } | ||
|
||
if BUILD_RUN=true yarn build; then | ||
echo "Successfully built $package" | ||
else | ||
echo "Build failed for $package" >&2 | ||
exit 1 | ||
fi | ||
|
||
cd - > /dev/null | ||
done | ||
|
||
echo "All packages built successfully!" |