Skip to content

Commit 384cee4

Browse files
committed
ci: streamline cache flow
1 parent 72a3182 commit 384cee4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828

2929
- uses: luarocks/gh-actions-luarocks@master
3030

31-
- name: Restore cached LuaRocks packages
31+
- name: Cache LuaRocks packages
3232
id: cache
33-
uses: actions/cache/restore@v4
33+
uses: actions/cache@v4
3434
with:
3535
path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\AppData\\Roaming\\luarocks' || format('{0}/.luarocks', github.workspace) }}
3636
key: ${{ runner.os }}-luarocks-${{ matrix.lua-version }}-${{ hashFiles('**/luarocks.lock') }}
@@ -44,10 +44,3 @@ jobs:
4444
luarocks lint tl-dev-1.rockspec
4545
make selfbuild
4646
luarocks test
47-
48-
- name: Save LuaRocks packages
49-
if: steps.cache.outputs.cache-hit != 'true'
50-
uses: actions/cache/save@v4
51-
with:
52-
path: ${{ runner.os == 'Windows' && 'C:\\Users\\runneradmin\\AppData\\Roaming\\luarocks' || format('{0}/.luarocks', github.workspace) }}
53-
key: ${{ runner.os }}-luarocks-${{ matrix.lua-version }}-${{ hashFiles('**/luarocks.lock') }}

0 commit comments

Comments
 (0)