xref: /Universal-ctags/.github/workflows/testing-big-endian.yml (revision 2549ada8535a6457594cce4bfcfa9d27c10919a2)
1name: run units target on a big endian architecture
2
3on:
4  push:
5    branches: [ master ]
6  pull_request:
7    branches: [ master ]
8
9jobs:
10  s390x_job:
11    runs-on: ubuntu-18.04
12    name: Build on ubuntu-18.04 s390x
13    steps:
14      - uses: actions/checkout@v2.1.0
15      - uses: uraimo/run-on-arch-action@v2
16        name: Run commands
17        id: runcmd
18        with:
19          arch: s390x
20          distro: fedora_latest
21          #
22          # We don't install libseccomp-devel because sandbox related test cases fail.
23          #
24          # Adjust safe.directory because we got following messages when running make check-genfile:
25          #
26          #     fatal: unsafe repository ('/home/runner/work/ctags/ctags' is owned by someone else)
27          #     To add an exception for this directory, call:
28          #     git config --global --add safe.directory /home/runner/work/ctags/ctags
29          #
30          install: |
31            dnf -y install git gdb procps-ng gcc automake autoconf pkgconfig make libxml2-devel jansson-devel libyaml-devel pcre2-devel findutils diffutils sudo
32          run: |
33            bash ./autogen.sh
34            ./configure --enable-debugging
35            make -j 2
36            readelf -h ctags
37            git config --global --add safe.directory $(pwd)
38            make check
39