Allow building packages in parallel

This commit is contained in:
Waqar Ahmed
2021-04-20 07:11:13 +05:00
committed by Waqar Ahmed
parent de59913926
commit 4b50d1688d
7 changed files with 119 additions and 36 deletions

View File

@@ -9,6 +9,7 @@ BUILD_TIME_OBJ = datetime.fromtimestamp(BUILD_TIME)
BUILDER_DIR = os.getenv('BUILDER_DIR', './')
BRANCH_OVERRIDES = {k[:-(len('_OVERRIDE'))]: v for k, v in os.environ.items() if k.endswith('_OVERRIDE')}
CODE_NAME = os.getenv('CODENAME', 'Angelfish')
PARALLEL_BUILD = int(os.getenv('PARALLEL_BUILDS', os.cpu_count() / 4))
PKG_DEBUG = os.getenv('PKG_DEBUG', False)
TRAIN = os.getenv('TRUENAS_TRAIN', f'TrueNAS-SCALE-{CODE_NAME}-Nightlies')
TRY_BRANCH_OVERRIDE = os.getenv('TRY_BRANCH_OVERRIDE')