Skip to content

Commit

Permalink
ci: custom runner option for custom build workflow call
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Jul 3, 2024
1 parent 51375e7 commit 7586f72
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ on:
packages:
description: "Packages to Build"
required: true
custom_builder:
description: "Custom Builder"
required: false
default: ""

jobs:
parse:
outputs:
pkgs: ${{ steps.parsing.outputs.pkgs }}
builder: ${{ inputs.custom_builder }}
runs-on: "ubuntu-latest"
steps:
- name: Parse Input
Expand All @@ -22,9 +27,9 @@ jobs:
matrix:
pkg: ${{ fromJson(needs.parse.outputs.pkgs) }}
version: ["40"]
arch: ["x86_64", "aarch64"]
arch: ${{ output.builder == "x86-64-lg" && ["x86_64"] || ["x86_64", "aarch64"] }}
fail-fast: false
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || output.builder && output.builder || 'ubuntu-latest' }}
container:
image: ghcr.io/terrapkg/builder:f${{ matrix.version }}
options: --cap-add=SYS_ADMIN --privileged
Expand Down

0 comments on commit 7586f72

Please sign in to comment.