File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5555 build :
5656 name : Build ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.name || inputs.name }} ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target || inputs.target }}
5757 runs-on : [ self-hosted, latest ]
58+ env :
59+ PARALLEL : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.parallel == 'true' || github.event_name != 'workflow_dispatch' && inputs.parallel == true }}
5860 strategy :
5961 fail-fast : false
6062 outputs :
@@ -126,7 +128,7 @@ jobs:
126128 id : parallel
127129 run : |
128130
129- if [ "${{ ((github.event.inputs.parallel == 'true' && github.event_name == 'workflow_dispatch') || (github.ref_name != 'main' && github.event_name != 'workflow_dispatch')) }} " == "true" ]; then
131+ if [ "$PARALLEL " == "true" ]; then
130132 echo "BR2_PER_PACKAGE_DIRECTORIES=y" >> output/.config
131133 MAKE="make -j$((`getconf _NPROCESSORS_ONLN` / 2 + 2))"
132134 echo "Building in parallel with -j$((`getconf _NPROCESSORS_ONLN` / 2 + 2))"
You can’t perform that action at this time.
0 commit comments