aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDania Rifki <atomicnumberphi@gmail.com>2026-02-25 09:40:23 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-25 10:07:31 +0800
commit74099fc62a1083aa4c308db1d0b642bcbb79713f (patch)
treee2c77802a1d20d38f738d8aa2d0dbc5d9fa937b7
parentf9e833896a8a5de4a5a2f6634140c7fc7f956cd7 (diff)
downloadyuescript-74099fc62a1083aa4c308db1d0b642bcbb79713f.tar.gz
yuescript-74099fc62a1083aa4c308db1d0b642bcbb79713f.tar.bz2
yuescript-74099fc62a1083aa4c308db1d0b642bcbb79713f.zip
Add cache hit condition
Diffstat (limited to '')
-rw-r--r--.github/workflows/static.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml
index 9e5ec0e..535c7b3 100644
--- a/.github/workflows/static.yml
+++ b/.github/workflows/static.yml
@@ -23,12 +23,14 @@ jobs:
23 uses: actions/checkout@v6 23 uses: actions/checkout@v6
24 24
25 - name: Cache Emscripten 25 - name: Cache Emscripten
26 id: cache-emsdk
26 uses: actions/cache@v4 27 uses: actions/cache@v4
27 with: 28 with:
28 path: ~/emsdk 29 path: ~/emsdk
29 key: emsdk-${{ runner.os }}-latest 30 key: emsdk-${{ runner.os }}-latest
30 31
31 - name: Install Emscripten 32 - name: Install Emscripten
33 if: steps.cache-emsdk.outputs.cache-hit != 'true'
32 run: | 34 run: |
33 git clone https://github.com/emscripten-core/emsdk.git ~/emsdk 35 git clone https://github.com/emscripten-core/emsdk.git ~/emsdk
34 ~/emsdk/emsdk install latest 36 ~/emsdk/emsdk install latest