]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: Run cross build test under qemu
authorDaniel Wagner <dwagner@suse.de>
Wed, 16 Nov 2022 16:05:00 +0000 (17:05 +0100)
committerDaniel Wagner <dwagner@suse.de>
Wed, 16 Nov 2022 16:22:07 +0000 (17:22 +0100)
Use qemu-user-static wrapper to run cross compiled tests.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
.github/cross/ubuntu-armhf.txt
.github/cross/ubuntu-ppc64le.txt
.github/workflows/meson.yml

index 2eee70b584b78a61299289de17200be3b334b9f9..41c8328906282be7e37cfbbea7a98d3c1f28506b 100644 (file)
@@ -4,6 +4,7 @@ ar = '/usr/arm-linux-gnueabihf/bin/ar'
 strip = '/usr/arm-linux-gnueabihf/bin/strip'
 pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
 ld = '/usr/bin/arm-linux/gnueabihf-ld'
+exe_wrapper = '/usr/bin/qemu-arm-static'
 
 [properties]
 root = '/usr/arm-linux-gnueabihf'
index 4cf6a92a2ef08ee42874aa13fb98bc55a993a300..6baaefbc26dfe79a8867e3e88cb47b2c212e74ca 100644 (file)
@@ -4,6 +4,7 @@ ar = '/usr/powerpc64le-linux-gnu/bin/ar'
 strip = '/usr/powerpc64le-linux-gnu/bin/strip'
 pkgconfig = '/usr/bin/powerpc64le-linux-gnu-pkg-config'
 ld = '/usr/bin/powerpc64le-linux-gnu-ld'
+exe_wrapper = '/usr/bin/qemu-ppc64le-static'
 
 [properties]
 root = '/usr/powerpc64le-linux-gnu'
index 342f01aaa5ebf76b816ae31d3c43239bea88af94..e7d40bc42bfce3e21c20e2e41c1fb3f9a30dca8b 100644 (file)
@@ -44,7 +44,7 @@ jobs:
           EOF
           sudo apt update
       - name: install armhf compiler
-        run: sudo apt install gcc-arm-linux-gnueabihf pkg-config
+        run: sudo apt install gcc-arm-linux-gnueabihf pkg-config qemu-user-static
       - name: install libraries
         run: sudo apt install uuid-dev:armhf libjson-c-dev:armhf
       - uses: actions/checkout@v3
@@ -53,7 +53,7 @@ jobs:
           # suppress python for now; the python headers currently assume native
           setup-options: --werror --cross-file=.github/cross/ubuntu-armhf.txt --wrap-mode=nofallback -Dpython=false
           options: --verbose
-          action: build
+          action: test
       - uses: actions/upload-artifact@v3
         if: failure()
         with:
@@ -74,7 +74,7 @@ jobs:
           EOF
           sudo apt update
       - name: install powerpc64le compiler
-        run: sudo apt install gcc-powerpc64le-linux-gnu pkg-config
+        run: sudo apt install gcc-powerpc64le-linux-gnu pkg-config qemu-user-static
       - name: install libraries
         run: sudo apt install uuid-dev:ppc64el libjson-c-dev:ppc64el
       - uses: actions/checkout@v3
@@ -83,7 +83,7 @@ jobs:
           # suppress python for now; the python headers currently assume native
           setup-options: --werror --cross-file=.github/cross/ubuntu-ppc64le.txt --wrap-mode=nofallback -Dpython=false
           options: --verbose
-          action: build
+          action: test
       - uses: actions/upload-artifact@v3
         if: failure()
         with: