Skip to content

Commit

Permalink
chore: cache neovim nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jun 11, 2024
1 parent 9e89ffc commit bd40aa2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ jobs:
- uses: actions/checkout@v4
- name: Run tests
uses: ./
with:
nvim_version: nightly
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,23 @@ runs:

- uses: actions/cache@v3
id: cache-luarocks
name: Restore cache for luarocks packages.
with:
path: |
~/.luarocks
key: ${{ runner.os }}-luarocks-${{ inputs.luarocks_version }}
restore-keys: |
${{ runner.os }}-luarocks-
- run: date +%F > todays-date
shell: bash
- name: Restore cache for today's Neovim nightly.
if: ${{ inputs.nvim_version }} == 'nightly'
uses: actions/cache@v3
with:
path: _neovim
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}

- uses: rhysd/action-setup-vim@v1
with:
neovim: true
Expand Down

0 comments on commit bd40aa2

Please sign in to comment.