Skip to content

Commit 56f2a25

Browse files
committed
Allow passing comma separated build types from caller workflows
1 parent 89480cd commit 56f2a25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/linux-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
project:
77
required: true
88
type: string
9+
build-types:
10+
required: false
11+
type: string
12+
default: Debug
913

1014
jobs:
1115
linux-build:
@@ -14,7 +18,7 @@ jobs:
1418
strategy:
1519
fail-fast: false
1620
matrix:
17-
build-type: [Debug]
21+
build-type: ${{ fromJson('["' + join(fromJSON('["${{ inputs.build-types }}"]'), '","') + '"]') }}
1822

1923
steps:
2024
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)