mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:33:43 +02:00
Output GHA fold markers when building
This commit is contained in:
parent
566f087ccb
commit
b1c714fc34
1 changed files with 4 additions and 0 deletions
|
|
@ -210,6 +210,8 @@ def pre_sub_commands(self, opts):
|
|||
|
||||
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 @@ def run_cmd(self, cmd, opts):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue