Skip to content

Commit d77a339

Browse files
committed
Try to fix cache
1 parent 9da3ed3 commit d77a339

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/reusable-emscripten.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
name: 'build and test'
1212
runs-on: ubuntu-24.04
1313
timeout-minutes: 60
14-
env:
15-
EMSDK_CACHE: ${{ github.workspace }}/../emsdk-cache
1614
steps:
1715
- uses: actions/checkout@v6
1816
with:
@@ -32,10 +30,13 @@ jobs:
3230
h.update(json.dumps(config["libffi"], sort_keys=True).encode())
3331
h.update(json.dumps(config["mpdec"], sort_keys=True).encode())
3432
h.update(Path("Platforms/emscripten/make_libffi.sh").read_bytes())
33+
emsdk_cache = Path(os.environ["RUNNER_TEMP"]) / "emsdk-cache"
3534
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
3635
f.write(f"emscripten-version={config['emscripten-version']}\n")
3736
f.write(f"node-version={config['node-version']}\n")
3837
f.write(f"deps-hash={h.hexdigest()}\n")
38+
with open(os.environ["GITHUB_ENV"], "a") as f:
39+
f.write(f"EMSDK_CACHE={emsdk_cache}\n")
3940
- name: "Install Node.js"
4041
uses: actions/setup-node@v6
4142
with:

0 commit comments

Comments
 (0)