ci: remove update-lockfile shell script

This commit is contained in:
Christian Clason 2023-05-29 16:52:20 +02:00
parent cde679e435
commit 9c0a99819c
15 changed files with 84 additions and 103 deletions

View file

@ -1,12 +1,12 @@
name: Test queries
on:
push:
branches:
- "master"
# push:
# branches:
# - "main"
pull_request:
branches:
- "master"
- "main"
# Cancel any in-progress CI runs for a PR if it is updated
concurrency:
@ -24,29 +24,29 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
cc: [gcc, clang]
nvim_tag: [v0.10.4]
nvim_tag: [nightly]
exclude:
- os: ubuntu-latest
cc: clang
nvim_tag: v0.10.4
nvim_tag: nightly
- os: macos-14
cc: gcc
nvim_tag: v0.10.4
- os: windows-latest
cc: clang
nvim_tag: v0.10.4
include:
- os: windows-latest
cc: cl
nvim_tag: nightly
- os: ubuntu-latest
- os: windows-latest
cc: gcc
nvim_tag: nightly
# include:
# - os: windows-latest
# cc: cl
# nvim_tag: nightly
# - os: ubuntu-latest
# cc: gcc
# nvim_tag: nightly
name: Parser compilation
runs-on: ${{ matrix.os }}
env:
@ -69,8 +69,8 @@ jobs:
uses: actions/cache@v4
with:
path: |
./parser/
~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/
~/.local/share/nvim/site/parser/
~/AppData/Local/nvim-data/site/parser/
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
'./lockfile.json',
'./lua/nvim-treesitter/install.lua',
@ -78,11 +78,7 @@ jobs:
'./lua/nvim-treesitter/shell_command_selectors.lua') }}
- name: Compile parsers
run: $NVIM --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
- name: Post compile Windows
if: runner.os == 'Windows'
run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser
run: $NVIM -l ./scripts/install-parsers.lua
- name: Check query files
run: $NVIM -l ./scripts/check-queries.lua