Skip to content

Commit 634d2f6

Browse files
ivoanjoeregon
authored andcommitted
Add no-op entry for reuse matrix when not skipping slow builds
1 parent 1da16dc commit 634d2f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ jobs:
6060
{ os: osList, name: ['head'] }
6161
)
6262
core.setOutput('build_matrix', buildMatrix)
63-
const reuseMatrix = JSON.stringify({
64-
os: osList,
65-
name: ['debug'],
66-
include: [{ os: 'ubuntu-24.04', name: 'asan' }]
67-
})
63+
const reuseMatrix = JSON.stringify(
64+
skipSlow === 'false' ?
65+
{ os: ['ubuntu-latest'], name: ['noop'] } : // GitHub doesn't like having an empty matrix, skips jobs that depend on reuse-slow
66+
{ os: osList, name: ['debug'], include: [{ os: 'ubuntu-24.04', name: 'asan' }] }
67+
)
6868
core.setOutput('reuse_matrix', reuseMatrix)
6969
console.log(`build_matrix: ${buildMatrix}, reuse_matrix: ${reuseMatrix}`)
7070

0 commit comments

Comments
 (0)