Skip to content

Commit d0058b0

Browse files
committed
[skip ci] workflows: optimize build command for parallel execution
Updated the build command to use the number of available processing units for parallel execution instead of a fixed value, improving build performance. Signed-off-by: Chiho Sin <[email protected]>
1 parent 4e2b895 commit d0058b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-board-custom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
BOARD: ${{ inputs.board }}
122122
FLAGS: ${{ inputs.flags }}
123123
DEBUG: ${{ inputs.debug && '1' || '0' }}
124-
run: make -j4 $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
124+
run: make -j$(nproc) $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
125125
working-directory: ports/${{ steps.board-to-port.outputs.port }}
126126
- name: Upload artifact
127127
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)