Skip to content

Commit ea9bae2

Browse files
committed
CI: add s390x compiler
1 parent 1465f2d commit ea9bae2

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/linux.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
Latest:
10+
name: Linux ${{matrix.cxx}}
1011
runs-on: ubuntu-latest
1112
strategy:
1213
matrix:
@@ -79,3 +80,47 @@ jobs:
7980

8081
- name: Test installation
8182
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built
83+
84+
s390X:
85+
name: Big Endian Linux
86+
runs-on: ubuntu-latest
87+
env:
88+
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON -DCMAKE_SYSTEM_PROCESSOR=s390x -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-s390x;-L;/usr/s390x-linux-gnu/" -G Ninja
89+
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=OFF
90+
CXX: s390x-linux-gnu-g++
91+
steps:
92+
- name: install toolchain
93+
run: |
94+
sudo apt-get update
95+
sudo apt-get install -y --no-install-recommends qemu-user crossbuild-essential-s390x qemu-system-s390x
96+
97+
- name: list compilers
98+
run: dpkg --list | grep compiler
99+
100+
- name: Get pushed code
101+
uses: actions/checkout@v4
102+
103+
- name: Checkout libebml
104+
uses: actions/checkout@v4
105+
with:
106+
repository: Matroska-Org/libebml
107+
path: libebml
108+
ref: v1.x
109+
110+
- name: Configure libebml
111+
run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }}
112+
113+
- name: Build libebml
114+
run: cmake --build libebml/_build --parallel
115+
116+
- name: Install libebml
117+
run: cmake --install libebml/_build --prefix ${GITHUB_WORKSPACE}/_built
118+
119+
- name: Configure
120+
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
121+
122+
- name: Build
123+
run: cmake --build _build --parallel
124+
125+
- name: Test installation
126+
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built

0 commit comments

Comments
 (0)