Skip to content

Commit

Permalink
fix(kicker init): remove rust target to avoid out of disk issue in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Flouse committed Oct 14, 2023
1 parent 1cbc9aa commit 41eff07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/manual-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Pulls godwoken repository into `packages/godwoken/`, builds, and then moves the
```shell
MANUAL_BUILD_GODWOKEN=true \
GODWOKEN_GIT_URL=ssh://git@github.com/godwokenrises/godwoken \
GODWOKEN_GIT_CHECKOUT=compatibility-breaking-changes \
GODWOKEN_GIT_CHECKOUT=develop \
./kicker manual-build
```

Expand Down
17 changes: 10 additions & 7 deletions kicker
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ function withdraw_v0_to_v1() {
godwoken-v0
}

# @example MANUAL_BUILD_WEB3=true \
# WEB3_GIT_URL=ssh://git@github.com/godwokenrises/godwoken-web3 \
# WEB3_GIT_CHECKOUT=compatibility-breaking-changes \
# @example MANUAL_BUILD_GODWOKEN=true \
# GODWOKEN_GIT_URL=ssh://git@github.com/godwokenrises/godwoken \
# GODWOKEN_GIT_CHECKOUT=develop \
# ./kicker manual-build
function manual_build() {
DOCKER_MANUAL_BUILD_IMAGE_NAME=${DOCKER_MANUAL_BUILD_IMAGE_NAME:-"retricsu/godwoken-manual-build"}
Expand Down Expand Up @@ -440,6 +440,8 @@ function manual_build() {
if [ "$MANUAL_BUILD_WEB3" = "true" ]; then
info "Start building godwoken-web3"

# godwoken-web3 is managed in the Godwoken monorepo.
# See https://github.com/godwokenrises/godwoken/tree/develop/web3
srcdir=$WORKSPACE/packages/godwoken-web3/web3
dstdir=$WORKSPACE/docker/manual-artifacts/godwoken-web3

Expand Down Expand Up @@ -499,6 +501,9 @@ function manual_build() {
# More: ./docker/manual-web3-indexer.compose.yml
erun mkdir -p $dstdir
erun cp $srcdir/web3/target/release/gw-web3-indexer $dstdir

# Remove Rust target to avoid `out of disk` issue in CI
sudo rm -rf $srcdir/web3/target/release
else
info "skip building godwoken-web3-indexer(gw-web3-indexer)"
fi
Expand Down Expand Up @@ -535,10 +540,8 @@ function manual_build() {
erun cp $srcdir/target/release/godwoken $dstdir
erun cp $srcdir/target/release/gw-tools $dstdir

# Remove target/release/examples to avoid `out of disk` issue in CI
du -hd1 $srcdir/target
rm -rf $srcdir/target/release/examples
du -hd1 $srcdir/target
# Remove Rust target to avoid `out of disk` issue in CI
sudo rm -rf $srcdir/target/release
else
info "skip building Godwoken"
fi
Expand Down

0 comments on commit 41eff07

Please sign in to comment.