Skip to content

Commit 7061ee3

Browse files
committed
Fix
1 parent 659db3e commit 7061ee3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838
const splits =
3939
Array.from({ length: Math.ceil(packages.length / 75) },
4040
(_, i) => packages.slice(i * 75, i * 75 + 75).join(' '));
41-
for (batch of splits) {
42-
console.log("Batch: " + batch);
43-
}
44-
return {build_env: ['cygwin', 'msys2'], packages: splits};
41+
const empty = (splits.length === 0);
42+
if (empty)
43+
splits = [''];
44+
return {build_env: ['cygwin', 'msys2'], empty: empty, packages: splits};
4545
4646
build:
4747
name: "target/host: x86_64-w64-mingw32, build: ${{ matrix.build_env }}"
4848
strategy:
4949
fail-fast: false
5050
matrix: ${{ fromJSON(needs.analyse.outputs.matrix) }}
51-
if: ${{ (fromJSON(needs.analyse.outputs.matrix)).packages.length > 0 }}
51+
if: ${{ matrix.empty != false }}
5252
runs-on: windows-latest
5353
needs: analyse
5454
steps:

0 commit comments

Comments
 (0)