Skip to content

Commit e496584

Browse files
init.test.luau cached luau installation in ci
1 parent 6b63106 commit e496584

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,11 @@ jobs:
2222
LATEST_TAG=$(curl -s https://api.github.com/repositories/148821256/releases/latest | jq -r '.tag_name')
2323
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
2424
25-
- name: Luau Cache
26-
id: cache-luau
27-
uses: actions/cache@v4
28-
with:
29-
path: luau-binaries
30-
key: luau-${{ env.LATEST_TAG }}
31-
restore-keys: luau-
3225
3326
- name: Debug cache hit
3427
run: echo "Cache hit? ${{ steps.cache-luau.outputs.cache-hit }}"
3528

36-
- name: Setup Luau (If Cached)
37-
if: steps.cache-luau.outputs.cache-hit == 'true'
38-
run: |
39-
echo "Luau cache hit, copying binaries"
40-
ls luau-binaries
41-
sudo cp luau-binaries/luau /usr/local/bin/luau
42-
sudo cp luau-binaries/luau-analyze /usr/local/bin/luau-analyze
43-
sudo cp luau-binaries/luau-ast /usr/local/bin/luau-ast
44-
sudo cp luau-binaries/luau-compile /usr/local/bin/luau-compile
45-
4629
- name: Setup Luau (If Not Cached)
47-
if: steps.cache-luau.outputs.cache-hit != 'true'
4830
run: |
4931
echo "Downloading Luau version ${{ env.LATEST_TAG }}"
5032
mkdir -p luau-binaries

0 commit comments

Comments
 (0)