Skip to content

Commit

Permalink
Cleanup builder invocation now that linux builders are chroot based
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 6, 2024
1 parent 15ac33a commit 033a454
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def echo_cmd(cmd: Iterable[str]) -> None:
end = '\n'
if isatty:
end = f'\x1b[m{end}'
print('\x1b[92m', end='')
print('\x1b[32m', end='')
print(shlex.join(cmd), end=end, flush=True)


Expand Down Expand Up @@ -75,7 +75,7 @@ def run_with_retry(cmd: str) -> None:
try:
call(cmd, echo=True)
except (SystemExit, Exception):
needs_retry = 'arm64' in cmd or building_nightly
needs_retry = building_nightly and 'linux' not in cmd
if not needs_retry:
raise
print('Build failed, retrying in a minute seconds...', file=sys.stderr)
Expand All @@ -87,7 +87,6 @@ def run_with_retry(cmd: str) -> None:
for x in ('64', 'arm64'):
prefix = f'python ../bypy linux --arch {x} '
run_with_retry(prefix + f'program --non-interactive --extra-program-data "{vcs_rev}"')
call(prefix + 'shutdown', echo=True)
run_with_retry(f'python ../bypy macos program --sign-installers --notarize --non-interactive --extra-program-data "{vcs_rev}"')
call('python ../bypy macos shutdown', echo=True)
call('make debug')
Expand Down

0 comments on commit 033a454

Please sign in to comment.