aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/optional.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/optional.yml')
-rw-r--r--.github/workflows/optional.yml23
1 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/optional.yml b/.github/workflows/optional.yml
index ebaf23d29b..c9a8205f87 100644
--- a/.github/workflows/optional.yml
+++ b/.github/workflows/optional.yml
@@ -2,6 +2,7 @@ name: optional
on:
pull_request:
types: [labeled, opened, synchronize, reopened]
+ workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
@@ -9,12 +10,14 @@ concurrency:
env:
INSTALL_PREFIX: ${{ github.workspace }}/nvim-install
+ # Double test timeout since it's running via qemu
+ TEST_TIMEOUT: 2400
# TEST_FILE: test/functional/shada
# TEST_FILTER: foo
jobs:
s390x:
- if: contains(github.event.pull_request.labels.*.name, 'ci-s390x')
+ if: contains(github.event.pull_request.labels.*.name, 'ci:s390x') || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
@@ -25,17 +28,21 @@ jobs:
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- uses: docker://multiarch/ubuntu-core:s390x-focal
with:
+ # Docker runs the command as root, but we want the build/test to run
+ # as non-root so permissions based tests run correctly
args: >
bash -c
"
apt-get -y update &&
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake curl gettext ninja-build locales-all cpanminus git attr libattr1-dev &&
- git clone --depth=1 https://github.com/neovim/neovim.git &&
+ useradd --create-home qemuci &&
+ chown -R qemuci. . &&
+ runuser -u qemuci -- git clone --depth=1 https://github.com/neovim/neovim.git &&
cd neovim &&
- git fetch origin ${{ github.ref }}:pr &&
- git switch pr &&
- 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 }}
+ runuser -u qemuci -- git fetch origin ${{ github.ref }}:pr &&
+ runuser -u qemuci -- git switch pr &&
+ runuser -u qemuci -- cmake -S cmake.deps -B .deps -G Ninja -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON &&
+ runuser -u qemuci -- cmake --build .deps &&
+ runuser -u qemuci -- cmake -B build -G Ninja -D CI_BUILD=ON -D PREFER_LUA=ON &&
+ runuser -u qemuci -- make ${{ matrix.test }}
"