diff options
| author | Joel Challis | 2025-12-20 21:33:58 +0100 |
|---|---|---|
| committer | GitHub | 2025-12-20 21:33:58 +0100 |
| commit | c68281b3532e00c1f3be38c550affc64fd4386a9 (patch) | |
| tree | 1678d6b25e383bac005c54e36ab7a8cf13ea726a /.github/workflows | |
| parent | 84d44e6188b5e54824be50a5b73840aae657728a (diff) | |
Handle building of XAP keymaps on master/develop (#25848)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci_build_major_branch_keymap.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/ci_build_major_branch_keymap.yml b/.github/workflows/ci_build_major_branch_keymap.yml index 3b2db843a9..17fdd6f96a 100644 --- a/.github/workflows/ci_build_major_branch_keymap.yml +++ b/.github/workflows/ci_build_major_branch_keymap.yml @@ -105,7 +105,12 @@ jobs: continue-on-error: true run: | export NCPUS=$(( $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) -1 )) - qmk mass-compile -t -j $NCPUS -e DUMP_CI_METADATA=yes $(jq -r '.["${{ matrix.target }}"].targets' targets.json) || touch .failed + targets=$(jq -r '.["${{ matrix.target }}"].targets' targets.json | tr ' ' '\n' | sort) + if [[ -z ${targets} ]]; then + echo "Zero build targets detected" + exit 0 + fi + qmk mass-compile -t -j $NCPUS -e DUMP_CI_METADATA=yes $targets || touch .failed - name: Upload binaries uses: actions/upload-artifact@v6 |