mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-27 23:45:15 +00:00
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
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:
parent
96429b06d2
commit
5f595907c8
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
5
.github/workflows/codeql.yml
vendored
5
.github/workflows/codeql.yml
vendored
@ -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:
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user