File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments