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 55
55
build :
56
56
name : Build ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.name || inputs.name }} ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target || inputs.target }}
57
57
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 }}
58
60
strategy :
59
61
fail-fast : false
60
62
outputs :
@@ -126,7 +128,7 @@ jobs:
126
128
id : parallel
127
129
run : |
128
130
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
130
132
echo "BR2_PER_PACKAGE_DIRECTORIES=y" >> output/.config
131
133
MAKE="make -j$((`getconf _NPROCESSORS_ONLN` / 2 + 2))"
132
134
echo "Building in parallel with -j$((`getconf _NPROCESSORS_ONLN` / 2 + 2))"
You can’t perform that action at this time.
0 commit comments