Skip to content

Commit

Permalink
To avoid timeouts in bazel clean or bazel build
Browse files Browse the repository at this point in the history
add the --init option to the container startup options.

container:
  options: --init
  • Loading branch information
phoepsilonix authored and wengxt committed Oct 9, 2024
1 parent 893abf1 commit ac2280c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/moze-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
options: --init --privileged
strategy:
fail-fast: false
steps:
Expand Down
4 changes: 2 additions & 2 deletions update_mozc_deps
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ check_and_download_bazel() {
}

run_bazel() {
#echo $1 clean --expunge
#$1 clean --expunge
echo $1 clean --expunge
$1 clean --expunge
echo $1 build --nobuild --experimental_downloader_config="$SCRIPT_DIRECTORY/downloader.cfg" --registry=file://$BASE/bcr --repository_cache="$_MOZC_BAZEL_CACHE" --config oss_linux --config release_build $2
$1 build --nobuild --experimental_downloader_config="$SCRIPT_DIRECTORY/downloader.cfg" --registry=file://$BASE/bcr --repository_cache="$_MOZC_BAZEL_CACHE" --config oss_linux --config release_build $2
}
Expand Down

0 comments on commit ac2280c

Please sign in to comment.