[PATCH 2/2] ci: add new musl-tools Github CI workflow
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Jun 5 04:25:24 PDT 2025
To avoid noticing musl breakage when barebox is updated in
OpenEmbedded-core, let's add a CI test at our side as well.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
.github/workflows/musl-tools.yml | 39 ++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 .github/workflows/musl-tools.yml
diff --git a/.github/workflows/musl-tools.yml b/.github/workflows/musl-tools.yml
new file mode 100644
index 000000000000..52cdd184ade3
--- /dev/null
+++ b/.github/workflows/musl-tools.yml
@@ -0,0 +1,39 @@
+name: build tools against musl
+
+on: [push, pull_request]
+
+jobs:
+ musl-tools:
+ runs-on: ubuntu-latest
+ container:
+ image: ghcr.io/barebox/barebox/barebox-ci:latest
+ # allow mounting and devtmpfs in the container
+ options: --user=root --privileged -v /dev:/dev
+
+ strategy:
+ fail-fast: false
+ matrix:
+
+ include:
+ - defconfig: hosttools_defconfig
+ suffix:
+
+ - defconfig: targettools_defconfig
+ suffix: -target
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout at v4
+
+ - name: Build
+ id: build
+ run: |
+ export PKG_CONFIG='pkg-config --keep-system-libs'
+ export CROSS_PKG_CONFIG='pkg-config --keep-system-libs'
+
+ m () { make -j$(nproc) CC=musl-gcc LD=musl-gcc HOSTCC=musl-gcc HOSTLD=musl-ld "$@"; }
+
+ m ${{matrix.defconfig}}
+ m scripts/
+
+ test -n "$(musl-ldd scripts/imx/imx-usb-loader${{matrix.suffix}} 2>/dev/null | grep musl)"
--
2.39.5
More information about the barebox
mailing list