Skip to content

Commit ae399e4

Browse files
committed
Break out two branches in condition
1 parent 9f4c56b commit ae399e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ jobs:
5454
script: |
5555
const osList = ['ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-22.04-arm', 'ubuntu-24.04-arm', 'macos-13', 'macos-14']
5656
const skipSlow = "${{ github.event_name == 'workflow_dispatch' && github.event.inputs.skip_slow == 'true' }}"
57-
const buildMatrix = JSON.stringify({
58-
os: osList,
59-
name: skipSlow === 'false' ? ['head', 'debug'] : ['head'],
60-
...(skipSlow === 'false' && { include: [{ os: 'ubuntu-24.04', name: 'asan' }] })
61-
})
57+
const buildMatrix = JSON.stringify(
58+
skipSlow === 'false' ?
59+
{ os: osList, name: ['head', 'debug'], include: [{ os: 'ubuntu-24.04', name: 'asan' }] } :
60+
{ os: osList, name: ['head'] }
61+
)
6262
core.setOutput('build_matrix', buildMatrix)
6363
const reuseMatrix = JSON.stringify({
6464
os: osList,

0 commit comments

Comments
 (0)