diff options
author | dundargoc <gocdundar@gmail.com> | 2023-10-31 13:27:39 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-01 11:17:35 +0100 |
commit | 20dd9f3a26e45a1b4c95ba33d6c9f300184fc361 (patch) | |
tree | ac1afe72a7510a865e10a7a1ed2f8d329df27a26 | |
parent | 1997ef134a9a1504fdaf6e7751f470e92d283a45 (diff) | |
download | rneovim-20dd9f3a26e45a1b4c95ba33d6c9f300184fc361.tar.gz rneovim-20dd9f3a26e45a1b4c95ba33d6c9f300184fc361.tar.bz2 rneovim-20dd9f3a26e45a1b4c95ba33d6c9f300184fc361.zip |
ci: add optional CI that can be triggered manually
These are meant for expensive or situational tests that may not be
suitable to run each time, but can occasionally be useful.
Currently only add testing for s390x. The job is enabled by adding the
ci-s390x label in github.
-rw-r--r-- | .github/workflows/optional.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/optional.yml b/.github/workflows/optional.yml new file mode 100644 index 0000000000..f512bb0d2a --- /dev/null +++ b/.github/workflows/optional.yml @@ -0,0 +1,34 @@ +name: optional +on: + pull_request: + types: [labeled, opened, synchronize, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +jobs: + s390x: + if: ${{ github.event.label.name == 'ci-s390x' }} + strategy: + fail-fast: false + matrix: + test: [functionaltest, oldtest] + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset + - uses: docker://multiarch/ubuntu-core:s390x-focal + with: + args: > + bash -c + " + apt-get -y update && + DEBIAN_FRONTEND=noninteractive apt-get -y install attr build-essential cmake curl gettext libattr1-dev ninja-build unzip locales-all cpanminus git && + git clone --depth=1 https://github.com/neovim/neovim.git && + cd neovim && + cmake -S cmake.deps -B .deps -G Ninja -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON && + cmake --build .deps && + cmake -B build -G Ninja -D PREFER_LUA=ON && + make ${{ matrix.test }} + " |