chore: run node without its compile cache

The deploy job sets NODE_DISABLE_COMPILE_CACHE for the build and the search gate, and lighthouse.py passes it to its children. The paths list gains generate_event_schema.py, which the site build imports.
This commit is contained in:
Abdessamad Derraz committed 2026-10-23 20:04:12 +02:00
1 parent 59285292c3
commit bac801c90e
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -22,6 +22,7 @@ on:
- "scripts/exporter/baseline.py"
- "scripts/exporter/candidates.py"
- "scripts/gamedata.py"
- "scripts/generate_event_schema.py"
- "scripts/generate_pack.py"
- "scripts/generate_readme.py"
- "scripts/generate_site.py"
@@ -89,6 +90,10 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
# Node's compile cache writes under /tmp on every node run, the build
# and the search gate alike.
env:
NODE_DISABLE_COMPILE_CACHE: "1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+1 -1
View File
@@ -31,7 +31,7 @@ def main() -> int:
engines = dict(item.split("=", 1) for item in args[:split])
pages = args[split + 1:]
out.mkdir(parents=True, exist_ok=True)
env = {**os.environ, "CHROME_PATH": "/usr/bin/google-chrome"}
env = {**os.environ, "CHROME_PATH": "/usr/bin/google-chrome", "NODE_DISABLE_COMPILE_CACHE": "1"}
for name, base in engines.items():
for page in pages:
slug = page.strip("/").replace("/", "_") or "home"