Skip to content

Commit 42ccbc7

Browse files
authored
ci: custom runner option for custom build workflow call (#1419)
1 parent eb52b15 commit 42ccbc7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ on:
55
packages:
66
description: "Packages to Build"
77
required: true
8+
custom_builder:
9+
description: "Custom Builder"
10+
required: false
11+
default: ""
812

913
jobs:
1014
parse:
1115
outputs:
1216
pkgs: ${{ steps.parsing.outputs.pkgs }}
17+
builder: ${{ inputs.custom_builder }}
1318
runs-on: "ubuntu-latest"
1419
steps:
1520
- name: Parse Input
@@ -22,9 +27,9 @@ jobs:
2227
matrix:
2328
pkg: ${{ fromJson(needs.parse.outputs.pkgs) }}
2429
version: ["40"]
25-
arch: ["x86_64", "aarch64"]
30+
arch: ${{ output.builder == "x86-64-lg" && ["x86_64"] || ["x86_64", "aarch64"] }}
2631
fail-fast: false
27-
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
32+
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || output.builder && output.builder || 'ubuntu-latest' }}
2833
container:
2934
image: ghcr.io/terrapkg/builder:f${{ matrix.version }}
3035
options: --cap-add=SYS_ADMIN --privileged

0 commit comments

Comments
 (0)