From bd40aa2906a7ef7842442be7004f732273e8f52d Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Tue, 11 Jun 2024 18:16:58 +0200 Subject: [PATCH] chore: cache neovim nightly --- .github/workflows/test.yml | 2 ++ action.yml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02c757f..81d73ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,3 +10,5 @@ jobs: - uses: actions/checkout@v4 - name: Run tests uses: ./ + with: + nvim_version: nightly diff --git a/action.yml b/action.yml index 9858bd1..c4ebc80 100644 --- a/action.yml +++ b/action.yml @@ -23,6 +23,7 @@ runs: - uses: actions/cache@v3 id: cache-luarocks + name: Restore cache for luarocks packages. with: path: | ~/.luarocks @@ -30,6 +31,15 @@ runs: 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