Skip to content

Commit 1f5f07b

Browse files
4 parallel builds (emuflight#311)
* meh, can't we just let Travis die already? Co-authored-by: Quick-Flash <[email protected]>
1 parent bc66dfe commit 1f5f07b

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
build:
1515
timeout-minutes: 75
1616
strategy:
17-
max-parallel: 3
17+
max-parallel: 4
1818
matrix:
19-
targets: [targets-group-1, targets-group-2, targets-group-rest]
19+
targets: [targets-group-1, targets-group-2, targets-group-3, targets-group-rest]
2020
runs-on: ubuntu-latest
2121
steps:
2222

.travis.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ make ${GOAL} || exit $?
2020
export EMU_VERSION="$(make version)"
2121

2222
# compose string to reference the artifacts (binaries)
23-
export PACKAGE_VERSION="${TRAVIS_BUILD_NUMBER}-${EMU_VERSION}-${TRAVIS_BRANCH}"
23+
export PACKAGE_VERSION="Travis_Build_${TRAVIS_BUILD_NUMBER}_${EMU_VERSION}_${TRAVIS_BRANCH}"
2424

2525
# process template for pushing to bintray
2626
j2 bintray-template.j2 -o bintray-conf.json

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ env:
55
matrix:
66
- GOAL=targets-group-1 # make all (in parallel)
77
- GOAL=targets-group-2
8+
- GOAL=targets-group-3
89
- GOAL=targets-group-rest
9-
# - GOAL=FURYF4OSD
10-
# - GOAL=MATEKF411
1110
global:
1211
# - DEBUG=RELWITHDEBINFO # debug symbols
1312
- CCACHE_SLOPPINESS="file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches"
@@ -16,7 +15,7 @@ env:
1615
- PATH="$HOME/.local/bin:$PATH" # "user" installs (pip and stuff)
1716

1817
git:
19-
depth: 5 # quick clone
18+
depth: 20 # semi-quick clone
2019
quiet: true # save on logfiles
2120

2221
addons:

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ targets-group-1: $(GROUP_1_TARGETS)
377377
## targets-group-2 : build some targets
378378
targets-group-2: $(GROUP_2_TARGETS)
379379

380+
## targets-group-3 : build some targets
381+
targets-group-3: $(GROUP_3_TARGETS)
382+
380383
## targets-group-rest: build the rest of the targets (not listed in group 1, 2 or 3)
381384
targets-group-rest: $(GROUP_OTHER_TARGETS)
382385

make/targets.mk

+6-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ UNSUPPORTED_TARGETS := \
8181
SUPPORTED_TARGETS := $(filter-out $(UNSUPPORTED_TARGETS), $(VALID_TARGETS))
8282

8383
TARGETS_TOTAL := $(words $(SUPPORTED_TARGETS))
84-
TARGET_GROUPS := 3
84+
TARGET_GROUPS := 4
8585
TARGETS_PER_GROUP := $(shell expr $(TARGETS_TOTAL) / $(TARGET_GROUPS) )
8686

8787
ST := 1
@@ -92,7 +92,11 @@ ST := $(shell expr $(ET) + 1)
9292
ET := $(shell expr $(ST) + $(TARGETS_PER_GROUP))
9393
GROUP_2_TARGETS := $(wordlist $(ST), $(ET), $(SUPPORTED_TARGETS))
9494

95-
GROUP_OTHER_TARGETS := $(filter-out $(GROUP_1_TARGETS) $(GROUP_2_TARGETS), $(SUPPORTED_TARGETS))
95+
ST := $(shell expr $(ET) + 1)
96+
ET := $(shell expr $(ST) + $(TARGETS_PER_GROUP))
97+
GROUP_3_TARGETS := $(wordlist $(ST), $(ET), $(SUPPORTED_TARGETS))
98+
99+
GROUP_OTHER_TARGETS := $(filter-out $(GROUP_1_TARGETS) $(GROUP_2_TARGETS) $(GROUP_3_TARGETS), $(SUPPORTED_TARGETS))
96100

97101
ifeq ($(filter $(TARGET),$(ALT_TARGETS)), $(TARGET))
98102
BASE_TARGET := $(firstword $(subst /,, $(subst ./src/main/target/,, $(dir $(wildcard $(ROOT)/src/main/target/*/$(TARGET).mk)))))

0 commit comments

Comments
 (0)