purple-plastic-57801
07/07/2023, 8:46 PMpurple-plastic-57801
07/07/2023, 8:49 PMwide-midnight-78598
07/07/2023, 8:52 PMpurple-plastic-57801
07/07/2023, 8:52 PMwide-midnight-78598
07/07/2023, 8:53 PMwide-midnight-78598
07/07/2023, 8:53 PMcurl
zip
etc?wide-midnight-78598
07/07/2023, 8:54 PMpurple-plastic-57801
07/07/2023, 8:55 PMwide-midnight-78598
07/07/2023, 8:55 PMwide-midnight-78598
07/07/2023, 8:56 PMpurple-plastic-57801
07/07/2023, 8:57 PMIf a per_platform is provided, represents a mapping from platform to http_source, where the platform is one of (linux_arm64, linux_x86_64, macos_arm64, macos_x86_64) and is resolved in the execution target. Each http_source value MUST have the same filename provided.
purple-plastic-57801
07/07/2023, 8:58 PMresource(
name="blah",
per_platform(
linux_arm64: blah?
)
)
wide-midnight-78598
07/07/2023, 8:59 PMpurple-plastic-57801
07/07/2023, 9:00 PMfile(
name="downloaded-act",
source=per_platform(
macos_x86_64=http_source(
url="<https://github.com/nektos/act/releases/download/v0.2.46/act_Darwin_x86_64.tar.gz>",
len=6289585,
sha256="503bd4560afa3394fac87c404d4b34d1b422b8bb136b7f4ddaab27d08367700a",
filename="act.tar.gz",
),
macos_arm64=http_source(
url="<https://github.com/nektos/act/releases/download/v0.2.46/act_Darwin_arm64.tar.gz>",
len=6015670,
sha256="6e5aae98192747d9430625cf0ac42e9fbcdbd9bc5e2558eb0297d0e2f9f2b2a8",
filename="act.tar.gz",
),
linux_x86_64=http_source(
url="<https://github.com/nektos/act/releases/download/v0.2.46/act_Linux_x86_64.tar.gz>",
len=6079499,
sha256="19d5cdf534f892c1b62c32765c3982e2eb1334d66de4cc7e4a0e568cc0256f44",
filename="act.tar.gz",
),
linux_arm64=http_source(
url="<https://github.com/nektos/act/releases/download/v0.2.46/act_Linux_arm64.tar.gz>",
len=5544514,
sha256="06418ca7430df409940812afe343c00118d7df889b11422232ff31a32a32b737",
filename="act.tar.gz",
),
),
)
shell_command(
name="extracted-act",
command="tar -xf act.tar.gz",
tools=["tar", "gzip"],
execution_dependencies=[":downloaded-act"],
output_directories=["act"],
)
file(
name=".actrc",
source=".actrc",
)
purple-plastic-57801
07/07/2023, 10:02 PMfile(
name="downloaded-balena-cli",
source=per_platform(
macos_x86_64=http_source(
url="<https://github.com/balena-io/balena-cli/releases/download/v16.6.4/balena-cli-v16.6.4-macOS-x64-standalone.zip>",
len=75226655,
sha256="cd698271a65b4337da14b4b4f883df19a7abe9f6feeb64365a3f22c58beaf4aa",
filename="balena-cli.zip",
),
linux_x86_64=http_source(
url="<https://github.com/balena-io/balena-cli/releases/download/v16.6.4/balena-cli-v16.6.4-linux-x64-standalone.zip>",
len=73597750,
sha256="ddd65f922bbedd37d4be81c809f4b1bd0731ea88c5ec1031b77d90e2f3dd3d78",
filename="balena-cli.zip",
),
),
)
shell_command(
name="extracted-balena-cli",
command="unzip -o balena-cli.zip",
tools=["unzip"],
execution_dependencies=[":downloaded-balena-cli"],
output_directories=["balena-cli"],
)
relocated_files(
name="balena-at-root",
files_targets=[":extracted-balena-cli"],
src=f"{build_file_dir()}",
dest="",
)
run_shell_command(
name="balena",
command="XDG_CONFIG_DIRS=${CHROOT}:$XDG_CONFIG_DIRS {chroot}/balena-cli/balena $@",
workdir="/",
execution_dependencies=[":balena-at-root"],
)
bitter-ability-32190
07/07/2023, 10:42 PM