File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,29 @@ 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-
2532
2633 - name : Debug cache hit
2734 run : echo "Cache hit? ${{ steps.cache-luau.outputs.cache-hit }}"
2835
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+
2946 - name : Setup Luau (If Not Cached)
47+ if : steps.cache-luau.outputs.cache-hit != 'true'
3048 run : |
3149 echo "Downloading Luau version ${{ env.LATEST_TAG }}"
3250 mkdir -p luau-binaries
You can’t perform that action at this time.
0 commit comments