mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Output GHA fold markers when building
This commit is contained in:
parent
566f087ccb
commit
b1c714fc34
@ -210,6 +210,8 @@ class Command(object):
|
|||||||
|
|
||||||
def running(self, cmd):
|
def running(self, cmd):
|
||||||
from setup.commands import command_names
|
from setup.commands import command_names
|
||||||
|
if os.environ.get('CI'):
|
||||||
|
self.info('::group::' + command_names[cmd])
|
||||||
self.info('\n*')
|
self.info('\n*')
|
||||||
self.info('* Running', command_names[cmd])
|
self.info('* Running', command_names[cmd])
|
||||||
self.info('*\n')
|
self.info('*\n')
|
||||||
@ -224,6 +226,8 @@ class Command(object):
|
|||||||
self.running(cmd)
|
self.running(cmd)
|
||||||
cmd.run(opts)
|
cmd.run(opts)
|
||||||
self.info('* %s took %.1f seconds' % (command_names[cmd], time.time() - st))
|
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):
|
def run_all(self, opts):
|
||||||
self.run_cmd(self, opts)
|
self.run_cmd(self, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user