2023-10-31 05:27:39 -07:00
|
|
|
name: optional
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [labeled, opened, synchronize, reopened]
|
2023-12-29 11:19:58 -07:00
|
|
|
workflow_dispatch:
|
2023-10-31 05:27:39 -07:00
|
|
|
|
|
|
|
concurrency:
|
2024-03-10 05:49:00 -07:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
2023-10-31 05:27:39 -07:00
|
|
|
|
2023-10-22 04:30:32 -07:00
|
|
|
env:
|
|
|
|
INSTALL_PREFIX: ${{ github.workspace }}/nvim-install
|
2023-12-18 15:46:25 -07:00
|
|
|
# Double test timeout since it's running via qemu
|
|
|
|
TEST_TIMEOUT: 2400
|
2023-10-22 04:30:32 -07:00
|
|
|
# TEST_FILE: test/functional/shada
|
|
|
|
# TEST_FILTER: foo
|
|
|
|
|
2023-10-31 05:27:39 -07:00
|
|
|
jobs:
|
|
|
|
s390x:
|
2024-03-08 06:07:27 -07:00
|
|
|
if: contains(github.event.pull_request.labels.*.name, 'ci:s390x') || github.event_name == 'workflow_dispatch'
|
2023-10-31 05:27:39 -07:00
|
|
|
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:
|
2023-12-18 17:02:47 -07:00
|
|
|
# Docker runs the command as root, but we want the build/test to run
|
|
|
|
# as non-root so permissions based tests run correctly
|
2023-10-31 05:27:39 -07:00
|
|
|
args: >
|
|
|
|
bash -c
|
|
|
|
"
|
|
|
|
apt-get -y update &&
|
2023-11-04 14:38:25 -07:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake curl gettext ninja-build locales-all cpanminus git attr libattr1-dev &&
|
2023-12-18 17:02:47 -07:00
|
|
|
useradd --create-home qemuci &&
|
|
|
|
chown -R qemuci. . &&
|
|
|
|
runuser -u qemuci -- git clone --depth=1 https://github.com/neovim/neovim.git &&
|
2023-10-31 05:27:39 -07:00
|
|
|
cd neovim &&
|
2023-12-18 17:02:47 -07:00
|
|
|
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 &&
|
2024-01-14 04:29:13 -07:00
|
|
|
runuser -u qemuci -- cmake -B build -G Ninja -D CI_BUILD=ON -D PREFER_LUA=ON &&
|
2023-12-18 17:02:47 -07:00
|
|
|
runuser -u qemuci -- make ${{ matrix.test }}
|
2023-10-31 05:27:39 -07:00
|
|
|
"
|