robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Barrett Ruthci(optional): avoid reruns from unrelated labels #39547085bb518c8

master
2.6 KiB70 linesraw
1name: optional
2on:
3  pull_request:
4    types: [labeled, opened, synchronize, reopened]
5  workflow_dispatch:
6
7permissions:
8  contents: read
9
10env:
11  INSTALL_PREFIX: ${{ github.workspace }}/nvim-install
12  # Double test timeout since it's running via qemu
13  TEST_TIMEOUT: 3600
14  # TEST_FILE: test/functional/shada
15  # TEST_FILTER: foo
16
17jobs:
18  s390x:
19    if: >-
20      github.event_name == 'workflow_dispatch' ||
21      (
22        contains(github.event.pull_request.labels.*.name, 'ci:s390x') &&
23        (github.event.action != 'labeled' || github.event.label.name == 'ci:s390x')
24      )
25    concurrency:
26      group: ${{ github.workflow }}-s390x-${{ github.ref }}
27      cancel-in-progress: ${{ github.event_name == 'pull_request' }}
28    strategy:
29      fail-fast: false
30      matrix:
31        test: [functionaltest, oldtest]
32    runs-on: ubuntu-latest
33    timeout-minutes: 90
34    steps:
35      - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
36      - uses: docker://multiarch/ubuntu-core:s390x-focal
37        with:
38          # Docker runs the command as root, but we want the build/test to run
39          # as non-root so permissions based tests run correctly
40          args: >
41            bash -c
42            "
43            apt-get -y update &&
44            time DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake curl gettext ninja-build locales-all cpanminus git attr libattr1-dev xdg-utils &&
45            useradd --create-home qemuci &&
46            chown -R qemuci. . &&
47            runuser -u qemuci -- git clone --depth=1 https://github.com/neovim/neovim.git &&
48            cd neovim &&
49            runuser -u qemuci -- git fetch origin ${{ github.ref }}:pr &&
50            runuser -u qemuci -- git switch pr &&
51            runuser -u qemuci -- cmake -S cmake.deps -B .deps -G Ninja -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON &&
52            runuser -u qemuci -- cmake --build .deps &&
53            runuser -u qemuci -- cmake -B build -G Ninja -D CI_BUILD=ON -D PREFER_LUA=ON &&
54            runuser -u qemuci -- make ${{ matrix.test }}
55            "
56
57  windows-asan:
58    if: >-
59      github.event_name == 'workflow_dispatch' ||
60      (
61        contains(github.event.pull_request.labels.*.name, 'ci:windows-asan') &&
62        (github.event.action != 'labeled' || github.event.label.name == 'ci:windows-asan')
63      )
64    concurrency:
65      group: ${{ github.workflow }}-windows-asan-${{ github.ref }}
66      cancel-in-progress: ${{ github.event_name == 'pull_request' }}
67    uses: ./.github/workflows/test_windows.yml
68    with:
69      build_flags: "-D ENABLE_ASAN_UBSAN=ON"
70      functionaltest_timeout: 40