mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Adjusting ORAS cache location, runners (#5129)
* Move packages to new location * Adjust build runners * Switch to OS Signed-off-by: Igor <igor@armbian.com> --------- Signed-off-by: Igor <igor@armbian.com> Co-authored-by: Ricardo Pardini <ricardo@pardini.net>
This commit is contained in:
@@ -110,7 +110,7 @@ wfFactory: gha.WorkflowFactory = gha.WorkflowFactory()
|
||||
|
||||
# Create prepare job
|
||||
pJob: PrepareJob = PrepareJob(f"prepare", f"prepare all")
|
||||
pJob.set_runs_on(["self-hosted", "Linux", 'armbian', "matrix-prepare"]) # @TODO: de-hardcode?
|
||||
pJob.set_runs_on(["self-hosted", "Linux", "matrix-prepare"]) # @TODO: de-hardcode?
|
||||
pJob.add_initial_checkout()
|
||||
pJob.add_cache_restore_step()
|
||||
|
||||
@@ -139,7 +139,7 @@ for artifact_id in info["artifacts"]:
|
||||
desc = f"{artifact['out']['artifact_name']}"
|
||||
|
||||
# runs_in = ["self-hosted", "Linux", 'armbian', f"artifact-{artifact_name}"]
|
||||
runs_on = "ubuntu-latest"
|
||||
runs_on = "fast"
|
||||
|
||||
# @TODO: externalize this logic.
|
||||
|
||||
@@ -147,11 +147,11 @@ for artifact_id in info["artifacts"]:
|
||||
if artifact_name in ["rootfs"]:
|
||||
rootfs_arch = artifact['in']['inputs']['ARCH'] # @TODO we should resolve arch _much_ ealier in the pipeline and make it standard
|
||||
if rootfs_arch in ["arm64"]: # (future: add armhf)
|
||||
runs_on = ["self-hosted", "Linux", 'armbian', f"rootfs-{rootfs_arch}"]
|
||||
runs_on = ["self-hosted", "Linux", f"rootfs-{rootfs_arch}"]
|
||||
|
||||
# all kernels are built on self-hosted runners.
|
||||
if artifact_name in ["kernel"]:
|
||||
runs_on = ["self-hosted", "Linux", 'armbian', f"artifact-{artifact_name}"]
|
||||
runs_on = ["self-hosted", "Linux", "alfa"]
|
||||
|
||||
inputs = artifact['in']['original_inputs']
|
||||
cmds = (["artifact"] + armbian_utils.map_to_armbian_params(inputs["vars"]) + inputs["configs"])
|
||||
@@ -189,11 +189,10 @@ for image_id in info["images"]:
|
||||
# continue
|
||||
|
||||
desc = f"{image['image_file_id']} {image_id}"
|
||||
|
||||
runs_on = "ubuntu-latest"
|
||||
runs_on = "fast"
|
||||
image_arch = image['out']['ARCH']
|
||||
if image_arch in ["arm64"]: # , "armhf"
|
||||
runs_on = ["self-hosted", "Linux", 'armbian', f"image-{image_arch}"]
|
||||
runs_on = ["self-hosted", "Linux", f"image-{image_arch}"]
|
||||
|
||||
inputs = image['in']
|
||||
cmds = (armbian_utils.map_to_armbian_params(inputs["vars"]) + inputs["configs"]) # image build is "build" command, omitted here
|
||||
|
||||
Reference in New Issue
Block a user