Output GHA fold markers when building

This commit is contained in:
Kovid Goyal 2021-07-02 09:29:44 +05:30
parent 566f087ccb
commit b1c714fc34
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -210,6 +210,8 @@ class Command(object):
def running(self, cmd):
from setup.commands import command_names
if os.environ.get('CI'):
self.info('::group::' + command_names[cmd])
self.info('\n*')
self.info('* Running', command_names[cmd])
self.info('*\n')
@ -224,6 +226,8 @@ class Command(object):
self.running(cmd)
cmd.run(opts)
self.info('* %s took %.1f seconds' % (command_names[cmd], time.time() - st))
if os.environ.get('CI'):
self.info('::endgroup::')
def run_all(self, opts):
self.run_cmd(self, opts)