Skip to content

Commit

Permalink
chore: add cache hit condition to luarocks installs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jun 11, 2024
1 parent a6018e9 commit cff64ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ runs:
steps:

- uses: actions/cache@v3
id: cache-luarocks
with:
path: |
~/.luarocks
Expand All @@ -46,10 +47,12 @@ runs:

- name: Setup LuaRocks
uses: hishamhm/gh-actions-luarocks@master
if: steps.cache-luarocks.outputs.cache-hit != 'true'
with:
luarocksVersion: ${{ inputs.luarocks_version }}

- name: Install busted and nlua
if: steps.cache-luarocks.outputs.cache-hit != 'true'
run: |
luarocks install busted --local ${{ inputs.bused_version }}
luarocks install nlua --local
Expand Down

0 comments on commit cff64ba

Please sign in to comment.