Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get calendar week (for nightly cache rotation)
id: week
run: echo "week=$(date +%Y-%W)" >> "$GITHUB_OUTPUT"

- name: Install system dependencies
run: |
# Install newer versions of rg and fd for unit tests
Expand All @@ -125,7 +129,8 @@ jobs:
uses: actions/cache@v4
with:
path: .local/nvim
key: neovim-${{ runner.os }}-${{ matrix.neovim-version }}
# Weekly rotation for nightly, stable versions stay cached indefinitely
key: neovim-${{ runner.os }}-${{ matrix.neovim-version }}-${{ matrix.neovim-version == 'nightly' && steps.week.outputs.week || 'stable' }}

- name: Install Neovim
if: steps.cache-neovim.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -156,6 +161,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get calendar week (for nightly cache rotation)
id: week
run: echo "week=$(date +%Y-%W)" >> "$GITHUB_OUTPUT"

- name: Setup directories
run: mkdir -p .local/nvim .local/bin .local/luals

Expand All @@ -164,7 +173,8 @@ jobs:
uses: actions/cache@v4
with:
path: .local/nvim
key: neovim-${{ runner.os }}-${{ matrix.neovim-version }}
# Weekly rotation for nightly, stable versions stay cached indefinitely
key: neovim-${{ runner.os }}-${{ matrix.neovim-version }}-${{ matrix.neovim-version == 'nightly' && steps.week.outputs.week || 'stable' }}

- name: Install Neovim
if: steps.cache-neovim.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -203,4 +213,4 @@ jobs:
ln -sf "$PWD/.local/luals/bin/lua-language-server" .local/bin/lua-language-server
ln -sf "$PWD/.local/nvim/bin/nvim" .local/bin/nvim
export PATH="$PWD/.local/bin:$PATH"
make luals
make luals
Loading
Loading