aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJozef Grajciar <jozef.grajciar@gmail.com>2021-03-01 17:53:57 +0100
committerStephan Seitz <stephan.lauf@yahoo.de>2021-03-04 19:58:58 +0100
commit2f60b43c0f003f549f845ac1578878c69514929b (patch)
treef249dc41b04196c4f87e9c284ee65faab5d2bff8 /.github/workflows
parentAdd Windows support for cl.exe (diff)
downloadnvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.tar
nvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.tar.gz
nvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.tar.bz2
nvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.tar.lz
nvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.tar.xz
nvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.tar.zst
nvim-treesitter-2f60b43c0f003f549f845ac1578878c69514929b.zip
Add CI for testing parsers compilation
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 000000000..da5fcab33
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,53 @@
+name: Parser compilation and tests
+
+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: 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
+
+ - uses: actions/upload-artifact@v2
+ with:
+ name: parsers-${{ matrix.os }}-${{ matrix.cc }}-x86_64
+ path: parser/*
+