Skip to content

Commit

Permalink
ci: Fix arch variable
Browse files Browse the repository at this point in the history
Signed-off-by: Qian Qian "Cubik"‎ <[email protected]>
  • Loading branch information
Cubik65536 committed Dec 31, 2024
1 parent aff8bb2 commit 6ca41c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/github_before_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [[ $_arch == "arm64" ]]; then
_rust_target="aarch64-apple-darwin"
fi

/usr/bin/arch -$_arch $_python_path/python3 ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn --skip-generate-buildfiles
/usr/bin/arch -$_arch $_python_path/python3 ./tools/rust/build_bindgen.py --rust-target $_rust_target
/usr/bin/arch -$_target_cpu $_python_path/python3 ./tools/gn/bootstrap/bootstrap.py -o out/Default/gn --skip-generate-buildfiles
/usr/bin/arch -$_target_cpu $_python_path/python3 ./tools/rust/build_bindgen.py --rust-target $_rust_target

/usr/bin/arch -$_arch ./out/Default/gn gen out/Default --fail-on-unused-args
/usr/bin/arch -$_target_cpu ./out/Default/gn gen out/Default --fail-on-unused-args
2 changes: 1 addition & 1 deletion .github/scripts/github_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cd build/src
echo $(date +%s) | tee -a "$_root_dir/build_times_$_target_cpu.log"
echo "status=running" >> $GITHUB_OUTPUT

timeout -k 7m -s SIGTERM ${_remaining_time:-19680}s /usr/bin/arch -$_arch $_ninja_path/ninja -C out/Default chrome chromedriver # 328 m as default $_remaining_time
timeout -k 7m -s SIGTERM ${_remaining_time:-19680}s /usr/bin/arch -$_target_cpu $_ninja_path/ninja -C out/Default chrome chromedriver # 328 m as default $_remaining_time

echo $(date +%s) | tee "$_root_dir/build_finished_$_target_cpu.log"
echo "status=finished" >> $GITHUB_OUTPUT
10 changes: 5 additions & 5 deletions .github/scripts/github_fetch_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ sudo du -hs "$_src_dir"
rm -rf "$_src_dir/out" || true
mkdir -p "$_download_cache"

/usr/bin/arch -$_arch /bin/bash "$_root_dir/retrieve_and_unpack_resource.sh" -g
/usr/bin/arch -$_target_cpu /bin/bash "$_root_dir/retrieve_and_unpack_resource.sh" -g

mkdir -p "$_src_dir/out/Default"

/usr/bin/arch -$_arch $_python_path/python3 "$_main_repo/utils/prune_binaries.py" "$_src_dir" "$_main_repo/pruning.list"
/usr/bin/arch -$_arch $_python_path/python3 "$_main_repo/utils/patches.py" apply "$_src_dir" "$_main_repo/patches" "$_root_dir/patches"
/usr/bin/arch -$_arch $_python_path/python3 "$_main_repo/utils/domain_substitution.py" apply -r "$_main_repo/domain_regex.list" -f "$_main_repo/domain_substitution.list" "$_src_dir"
/usr/bin/arch -$_target_cpu $_python_path/python3 "$_main_repo/utils/prune_binaries.py" "$_src_dir" "$_main_repo/pruning.list"
/usr/bin/arch -$_target_cpu $_python_path/python3 "$_main_repo/utils/patches.py" apply "$_src_dir" "$_main_repo/patches" "$_root_dir/patches"
/usr/bin/arch -$_target_cpu $_python_path/python3 "$_main_repo/utils/domain_substitution.py" apply -r "$_main_repo/domain_regex.list" -f "$_main_repo/domain_substitution.list" "$_src_dir"

mkdir -p "$_src_dir/third_party/llvm-build/Release+Asserts"
mkdir -p "$_src_dir/third_party/rust-toolchain/bin"

/usr/bin/arch -$_arch /bin/bash "$_root_dir/retrieve_and_unpack_resource.sh" -p
/usr/bin/arch -$_target_cpu /bin/bash "$_root_dir/retrieve_and_unpack_resource.sh" -p

rm -rvf "$_download_cache"

0 comments on commit 6ca41c9

Please sign in to comment.