ci/build: specify systemAsName option

This commit is contained in:
Matt Sturgeon 2025-05-26 00:05:13 +01:00
parent 73ca23dd44
commit f77ecb989a
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,10 @@ on:
description: "json array of builds: [ { system, runner, attr } ]" description: "json array of builds: [ { system, runner, attr } ]"
required: true required: true
type: string type: string
systemAsName:
required: false
type: boolean
default: false
timeout: timeout:
required: false required: false
type: number type: number
@ -14,7 +18,7 @@ on:
jobs: jobs:
build: build:
name: (${{ matrix.system }}) name: ${{ inputs.systemAsName && matrix.system || matrix.attr }}
runs-on: runs-on:
- ${{ matrix.runner }} - ${{ matrix.runner }}
strategy: strategy:

View file

@ -41,4 +41,5 @@ jobs:
include: ${{ fromJSON(needs.prepare.outputs.matrix) }} include: ${{ fromJSON(needs.prepare.outputs.matrix) }}
secrets: inherit secrets: inherit
with: with:
systemAsName: true
builds: ${{ toJSON(matrix.builds) }} builds: ${{ toJSON(matrix.builds) }}