Merge pull request #4298 from jepler/translation-allow-list

build_release_files: Only build languages in an allow-list
This commit is contained in:
Dan Halbert 2021-03-01 22:57:27 -05:00 committed by GitHub
commit 64192b0ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,9 @@ if "BOARDS" in os.environ:
sha, version = build_info.get_version_info()
languages = build_info.get_languages()
language_allow_list = ['ID', 'de_DE', 'en_US', 'en_x_pirate', 'es', 'fil', 'fr', 'it_IT', 'ja', 'nl', 'pl', 'pt_BR', 'sv', 'zh_Latn_pinyin']
print('Note: Not building languages', set(languages) - set(language_allow_list))
exit_status = 0
cores = multiprocessing.cpu_count()
print('building boards with parallelism {}'.format(cores))
@ -35,7 +38,7 @@ for board in build_boards:
os.makedirs(bin_directory, exist_ok=True)
board_info = all_boards[board]
for language in languages:
for language in language_allow_list:
bin_directory = "../bin/{board}/{language}".format(board=board, language=language)
os.makedirs(bin_directory, exist_ok=True)
start_time = time.monotonic()