Skip to content

Commit

Permalink
Make GCB workable
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Jun 2, 2022
1 parent 1623e4b commit abba224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,17 +370,14 @@ def main(argv: Sequence[str]) -> None:
command = f"./chef.py -cbr --use_zzz -d {device_name} -t {options.build_target}"
flush_print(f"Building {command}", with_border=True)
shell.run_cmd(command)
# TODO call per-platform bundle function for extra validation
exit(0)

#
# Build all
#

if options.build_all:
# TODO
# Needs to call per-platform bundle function
flush_print("Build all disabled")
exit(1)
flush_print("Building all chef examples")
archive_prefix = "/workspace/artifacts/"
archive_suffix = ".tar.gz"
Expand All @@ -395,7 +392,8 @@ def main(argv: Sequence[str]) -> None:
shell.run_cmd(f"cd {_CHEF_SCRIPT_PATH}")
shell.run_cmd("export GNUARMEMB_TOOLCHAIN_PATH=\"$PW_ARM_CIPD_INSTALL_DIR\"")
shell.run_cmd(command)
archive_name = f"{label}-chef-{device_name}-wifi-rpc"
# TODO Needs to call per-platform bundle function
archive_name = f"{label}-{device_name}"
archive_full_name = archive_prefix + archive_name + archive_suffix
flush_print(f"Adding build output to archive {archive_full_name}")
with tarfile.open(archive_full_name, "w:gz") as tar:
Expand Down
6 changes: 3 additions & 3 deletions integrations/cloudbuild/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ artifacts:
paths: ["/workspace/artifacts/*.tar.gz"]
# Using higher CPU machines generally speeds up builds, except bootstrap is always
# slow.
# options:
# machineType: "E2_HIGHCPU_32"
# diskSizeGb: 200
options:
machineType: "E2_HIGHCPU_32"
diskSizeGb: 200

0 comments on commit abba224

Please sign in to comment.