Try installing rapydscript on windows CI as well
Some checks are pending
CI / Test on ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test on ${{ matrix.os }} (ubuntu-latest) (push) Waiting to run
CI / Test on ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test on Arch (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, windows-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
Transifex / Update translations on Transifex (push) Waiting to run

This commit is contained in:
Kovid Goyal 2025-12-13 11:20:45 +05:30
parent 96429b06d2
commit 5f595907c8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
4 changed files with 20 additions and 5 deletions

View File

@ -22,6 +22,11 @@ jobs:
with:
python-version: "3.14"
- name: Setup node.js for rapydscript
uses: actions/setup-node@v6
with:
node-version: "latest"
- name: Install calibre dependencies
run:
python setup/unix-ci.py install

View File

@ -51,6 +51,11 @@ jobs:
languages: ${{ matrix.language }}
trap-caching: false
- name: Setup node.js for rapydscript
uses: actions/setup-node@v6
with:
node-version: "latest"
- name: Install calibre dependencies
if: matrix.language == 'c'
run:

View File

@ -237,17 +237,21 @@ 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']()
if action == 'install':
# WebEngine is flaky in macOS CI so install rapydscript so bootstrap wont fail
run('npm', 'install', 'rapydscript-ng')
npm = 'npm.cmd' if iswindows else 'npm'
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)
if iswindows:
import runpy
m = runpy.run_path('setup/win-ci.py')
return m['main']()
if action == 'install':
install_bundle()
if not ismacos:
install_linux_deps()

View File

@ -91,6 +91,7 @@ def main():
q = sys.argv[-1]
setup_env()
if q == 'bootstrap':
subprocess.check_call(['rapydscript', '--version'])
build()
elif q == 'test':
test()