Skip to content

Commit ca5df0a

Browse files
authored
Merge pull request #535 from igaw/run-cross-tests
build: Run cross build test under qemu
2 parents 0a5c066 + 6b861c2 commit ca5df0a

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/cross/ubuntu-armhf.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ar = '/usr/arm-linux-gnueabihf/bin/ar'
44
strip = '/usr/arm-linux-gnueabihf/bin/strip'
55
pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
66
ld = '/usr/bin/arm-linux/gnueabihf-ld'
7+
exe_wrapper = '/usr/bin/qemu-arm-static'
78

89
[properties]
910
root = '/usr/arm-linux-gnueabihf'

.github/cross/ubuntu-ppc64le.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ar = '/usr/powerpc64le-linux-gnu/bin/ar'
44
strip = '/usr/powerpc64le-linux-gnu/bin/strip'
55
pkgconfig = '/usr/bin/powerpc64le-linux-gnu-pkg-config'
66
ld = '/usr/bin/powerpc64le-linux-gnu-ld'
7+
exe_wrapper = '/usr/bin/qemu-ppc64le-static'
78

89
[properties]
910
root = '/usr/powerpc64le-linux-gnu'

.github/workflows/meson.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
EOF
4545
sudo apt update
4646
- name: install armhf compiler
47-
run: sudo apt install gcc-arm-linux-gnueabihf pkg-config
47+
run: sudo apt install gcc-arm-linux-gnueabihf pkg-config qemu-user-static
4848
- name: install libraries
4949
run: sudo apt install uuid-dev:armhf libjson-c-dev:armhf
5050
- uses: actions/checkout@v3
@@ -53,7 +53,7 @@ jobs:
5353
# suppress python for now; the python headers currently assume native
5454
setup-options: --werror --cross-file=.github/cross/ubuntu-armhf.txt --wrap-mode=nofallback -Dpython=false
5555
options: --verbose
56-
action: build
56+
action: test
5757
- uses: actions/upload-artifact@v3
5858
if: failure()
5959
with:
@@ -74,7 +74,7 @@ jobs:
7474
EOF
7575
sudo apt update
7676
- name: install powerpc64le compiler
77-
run: sudo apt install gcc-powerpc64le-linux-gnu pkg-config
77+
run: sudo apt install gcc-powerpc64le-linux-gnu pkg-config qemu-user-static
7878
- name: install libraries
7979
run: sudo apt install uuid-dev:ppc64el libjson-c-dev:ppc64el
8080
- uses: actions/checkout@v3
@@ -83,7 +83,7 @@ jobs:
8383
# suppress python for now; the python headers currently assume native
8484
setup-options: --werror --cross-file=.github/cross/ubuntu-ppc64le.txt --wrap-mode=nofallback -Dpython=false
8585
options: --verbose
86-
action: build
86+
action: test
8787
- uses: actions/upload-artifact@v3
8888
if: failure()
8989
with:

0 commit comments

Comments
 (0)