forked from barebox/barebox
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 975 Bytes
/
musl-tools.yml
File metadata and controls
39 lines (29 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@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)"