diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-03-08 13:02:53 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-16 18:52:43 +0100 |
| commit | 606341a1396dc4d4264d8247696b6e508ac42e37 (patch) | |
| tree | 4d793c1ae9f5970ed6de2f8f26457d3ee3ac94d0 /.github/workflows/check-query-files-and-compilation.yml | |
| parent | Check query files on all OSes (diff) | |
| download | nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.tar nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.tar.gz nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.tar.bz2 nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.tar.lz nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.tar.xz nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.tar.zst nvim-treesitter-606341a1396dc4d4264d8247696b6e508ac42e37.zip | |
Remove query file workflow (tested now on all OS
Diffstat (limited to '.github/workflows/check-query-files-and-compilation.yml')
| -rw-r--r-- | .github/workflows/check-query-files-and-compilation.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/check-query-files-and-compilation.yml b/.github/workflows/check-query-files-and-compilation.yml new file mode 100644 index 000000000..546d56157 --- /dev/null +++ b/.github/workflows/check-query-files-and-compilation.yml @@ -0,0 +1,61 @@ +name: Parser compilation and query file check + +on: [push, pull_request] + +jobs: + check_compilation_unix_like: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + cc: [ gcc, clang ] + exclude: + - os: macos-latest + cc: gcc + + include: + - os: windows-latest + cc: cl + + - os: macos-latest + cc: gcc-10 + + name: Parser compilation + runs-on: ${{ matrix.os }} + env: + CC: ${{ matrix.cc }} + steps: + - uses: actions/checkout@v2 + - uses: ilammy/msvc-dev-cmd@v1.5.0 + + - name: Install and prepare Neovim + run: | + bash ./scripts/ci-install-${{ matrix.os }}.sh + + - name: Compile parsers Unix like + if: matrix.os != 'windows-latest' + run: | + nvim --headless -c "TSInstallSync all" -c "q" + + - name: Check query files (Unix) + if: matrix.os != 'windows-latest' + run: ./nvim.appimage --headless -c "luafile ./scripts/check-queries.lua" -c "q" + + - name: Compile parsers Windows + if: matrix.os == 'windows-latest' + run: | + C:\\tools\\neovim\\Neovim\\bin\\nvim.exe --headless -c "TSInstallSync all" -c "q" + + - name: Post compile Windows + if: matrix.os == 'windows-latest' + run: cp -r ~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/* parser + shell: bash + + - name: Check query files (Windows) + if: matrix.os == 'windows-latest' + run: C:\\tools\\neovim\\Neovim\\bin\\nvim.exe --headless -c "luafile ./scripts/check-queries.lua" -c "q" + + - uses: actions/upload-artifact@v2 + with: + name: parsers-${{ matrix.os }}-${{ matrix.cc }}-x86_64 + path: parser/* + |
