Skip to content

Commit eaa9890

Browse files
committed
github workflows: Add a powerpc64le cross build
Like the armhf cross build, add one for 64-bit powerpc too. Signed-off-by: Jeremy Kerr <[email protected]>
1 parent efaebc7 commit eaa9890

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/cross/ubuntu-ppc64le.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[binaries]
2+
c = '/usr/bin/powerpc64le-linux-gnu-gcc'
3+
ar = '/usr/powerpc64le-linux-gnu/bin/ar'
4+
strip = '/usr/powerpc64le-linux-gnu/bin/strip'
5+
pkgconfig = '/usr/bin/powerpc64le-linux-gnu-pkg-config'
6+
ld = '/usr/bin/powerpc64le-linux-gnu-ld'
7+
8+
[properties]
9+
root = '/usr/powerpc64le-linux-gnu'
10+
has_function_printf = true
11+
skip_sanity_check = true
12+
13+
[host_machine]
14+
system = 'linux'
15+
cpu_family = 'ppc64'
16+
cpu = ''
17+
endian = 'little'

.github/workflows/meson.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,36 @@ jobs:
6060
name: Linux_Meson_Testlog
6161
path: build/meson-logs/testlog.txt
6262

63+
build-cross-ppc64le:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: set up ppc64le architecture
67+
run: |
68+
export release=$(lsb_release -c -s)
69+
sudo dpkg --add-architecture ppc64el
70+
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
71+
sudo dd of=/etc/apt/sources.list.d/ppc64el.list <<EOF
72+
deb [arch=ppc64el] http://ports.ubuntu.com/ $release main universe restricted"
73+
deb [arch=ppc64el] http://ports.ubuntu.com/ $release-updates main universe restricted"
74+
EOF
75+
sudo apt update
76+
- name: install powerpc64le compiler
77+
run: sudo apt install gcc-powerpc64le-linux-gnu pkg-config
78+
- name: install libraries
79+
run: sudo apt install uuid-dev:ppc64el libjson-c-dev:ppc64el
80+
- uses: actions/checkout@v3
81+
- uses: BSFishy/[email protected]
82+
with:
83+
# suppress python for now; the python headers currently assume native
84+
setup-options: --werror --cross-file=.github/cross/ubuntu-ppc64le.txt --wrap-mode=nofallback -Dpython=false
85+
options: --verbose
86+
action: build
87+
- uses: actions/upload-artifact@v3
88+
if: failure()
89+
with:
90+
name: Linux_Meson_Testlog
91+
path: build/meson-logs/testlog.txt
92+
6393
build-fallback:
6494
runs-on: ubuntu-latest
6595
steps:

0 commit comments

Comments
 (0)