This commit is contained in:
Jun Ng. 2025-12-05 02:52:24 +07:00 committed by GitHub
commit ab3360cea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 3 deletions

View File

@ -23,10 +23,15 @@ on:
default: "firmware" default: "firmware"
required: false required: false
type: string type: string
runner-type:
required: true
type: string
default: "ubuntu-latest" # Provide a default if desired
jobs: jobs:
matrix: matrix:
runs-on: ubuntu-22.04 # Use the input value for runs-on
runs-on: ${{ inputs.runner-type }}
name: Fetch Build Keyboards name: Fetch Build Keyboards
outputs: outputs:
build_matrix: ${{ env.build_matrix }} build_matrix: ${{ env.build_matrix }}
@ -40,7 +45,8 @@ jobs:
yq -oj "${{ inputs.build_matrix_path }}" yq -oj "${{ inputs.build_matrix_path }}"
build: build:
runs-on: ubuntu-latest # Use the input value for runs-on
runs-on: ${{ inputs.runner-type }}
container: container:
image: zmkfirmware/zmk-build-arm:stable image: zmkfirmware/zmk-build-arm:stable
needs: matrix needs: matrix
@ -167,7 +173,8 @@ jobs:
path: ${{ env.build_dir }}/artifacts path: ${{ env.build_dir }}/artifacts
merge: merge:
runs-on: ubuntu-latest # Use the input value for runs-on
runs-on: ${{ inputs.runner-type }}
needs: build needs: build
name: Merge Output Artifacts name: Merge Output Artifacts
steps: steps: