mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-06 04:00:20 -05:00
Try installing rapydscript in CI
WebEngine is flaky on macOS CI
This commit is contained in:
parent
561df1798e
commit
1da24f0407
@ -236,17 +236,24 @@ def check_dependencies() -> None:
|
||||
|
||||
|
||||
def main():
|
||||
action = sys.argv[1]
|
||||
if iswindows:
|
||||
import runpy
|
||||
m = runpy.run_path('setup/win-ci.py')
|
||||
return m['main']()
|
||||
action = sys.argv[1]
|
||||
if action == 'install':
|
||||
# WebEngine is flaky in macOS CI so install rapydscript so bootstrap wont fail
|
||||
run('npm', 'install', 'rapydscript-ng')
|
||||
root = subprocess.check_output(['npm', 'root']).decode().strip()
|
||||
with open(os.environ['GITHUB_PATH'], 'a') as f:
|
||||
print(os.path.abspath(os.path.join(root, '.bin')), file=f)
|
||||
|
||||
install_bundle()
|
||||
if not ismacos:
|
||||
install_linux_deps()
|
||||
|
||||
elif action == 'bootstrap':
|
||||
run('rapydscript', '--version')
|
||||
install_env()
|
||||
run_python('setup.py bootstrap --ephemeral')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user