From 7163ebc2c0c49b258fe70d008d64a4c47316e19b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 24 Jul 2021 11:28:56 +0200 Subject: [PATCH] build(CI): switch to GitHub Actions, fix Neovim build (pynvim/greenlet) (#78) * add g++ to fix building of greenlet for -py2/-py3 with Neovim's pynvim * move CI to GitHub Actions This also adds separate jobs for single example/test builds, e.g. Neovim 0.5 with `-py3` only. * example/Makefile: do not use -i with docker-run on CI Using `-i` does not work on GHA: > the input device is not a TTY * example/Makefile: consistent whitespace with assignments --- .github/workflows/ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 11 --------- Makefile | 2 +- README.md | 8 +++---- example/Makefile | 7 ++++-- scripts/install_vim.sh | 2 ++ 6 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1831335 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,52 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test_single: + # Single/simple build instructions to ensure e.g. that build deps for -py2 + # do not implicitly fix -py3 builds (which might fail otherwise). + name: 'test: ${{ matrix.m_name }}' + strategy: + fail-fast: false + matrix: + include: + - m_name: vim71 + m_args: -tag v7.1 -name vim71 -prebuild_script 'echo "#define FEAT_PROFILE" >> src/feature.h' + - m_name: vim73 + m_args: -tag v7.3.429 -name vim73 -py + - m_name: vim74-trusty + m_args: -tag v7.4.052 -name vim74-trusty -py3 + - m_name: vim-master + m_args: -tag master -py2 -py3 -ruby -lua + - m_name: neovim-v0.2.0 + m_args: -tag neovim:v0.2.0 -py2 -py3 -ruby + - m_name: neovim-v0.5.0 + m_args: -tag neovim:v0.5.0 -py3 + - m_name: neovim-master + m_args: -tag neovim:master -py2 -py3 -ruby + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Build example for test + run: | + cat > example/Dockerfile.tests <