Skip to content

Commit 21696f3

Browse files
committed
Fix
1 parent 659db3e commit 21696f3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/windows.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,22 @@ 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);
41+
console.log("splits.length: " + splits.length);
42+
var empty;
43+
if (splits.length === 0) {
44+
splits = [""];
45+
empty = "yes";
46+
else {
47+
empty = "no";
4348
}
44-
return {build_env: ['cygwin', 'msys2'], packages: splits};
49+
return {build_env: ['cygwin', 'msys2'], empty: empty, packages: splits};
4550
4651
build:
4752
name: "target/host: x86_64-w64-mingw32, build: ${{ matrix.build_env }}"
4853
strategy:
4954
fail-fast: false
5055
matrix: ${{ fromJSON(needs.analyse.outputs.matrix) }}
51-
if: ${{ (fromJSON(needs.analyse.outputs.matrix)).packages.length > 0 }}
56+
if: fromJSON(needs.analyse.outputs.matrix).empty != "no"
5257
runs-on: windows-latest
5358
needs: analyse
5459
steps:

0 commit comments

Comments
 (0)