Skip to content

Commit ffbb694

Browse files
committed
ci: build armv7 without io-uring bindgen
Signed-off-by: Sam Day <me@samcday.com>
1 parent 84d69b5 commit ffbb694

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.cargo/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rustflags = ["--cfg=web_sys_unstable_apis"]
33

44
[alias]
55
gadget-musl-aarch64 = ["build", "-p", "smoo-gadget-cli", "--release", "--target", "aarch64-unknown-linux-musl"]
6-
gadget-musl-armv7 = ["build", "-p", "smoo-gadget-cli", "--release", "--target", "armv7-unknown-linux-musleabihf", "--features", "smoo-gadget-cli/apkbuild"]
6+
gadget-musl-armv7 = ["build", "-p", "smoo-gadget-cli", "--release", "--target", "armv7-unknown-linux-musleabihf"]
77
gadget-musl-x86_64 = ["build", "-p", "smoo-gadget-cli", "--release", "--target", "x86_64-unknown-linux-musl"]
88
xtask = ["run", "--quiet", "--package", "xtask", "--"]
99

@@ -13,7 +13,7 @@ rustflags = ["-C", "target-feature=+crt-static"]
1313

1414
[target.armv7-unknown-linux-musleabihf]
1515
linker = "rust-lld"
16-
rustflags = ["-C", "target-feature=+crt-static"]
16+
rustflags = ["-C", "target-feature=+crt-static", "--cfg=io_uring_skip_arch_check"]
1717

1818
[target.x86_64-unknown-linux-musl]
1919
linker = "rust-lld"

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,19 @@ jobs:
5454
runner: ubuntu-24.04
5555
target: x86_64-unknown-linux-musl
5656
build_args: "--bins"
57+
rustflags: ""
5758
upload_host: true
5859
- name: aarch64
5960
runner: ubuntu-24.04-arm
6061
target: aarch64-unknown-linux-musl
6162
build_args: "--bins"
63+
rustflags: ""
6264
upload_host: true
6365
- name: armv7
6466
runner: ubuntu-24.04
6567
target: armv7-unknown-linux-musleabihf
66-
build_args: "-p smoo-gadget-cli --features smoo-gadget-cli/apkbuild"
68+
build_args: "-p smoo-gadget-cli"
69+
rustflags: "--cfg=io_uring_skip_arch_check"
6770
upload_host: false
6871

6972
steps:
@@ -92,6 +95,8 @@ jobs:
9295
fi
9396
9497
- name: Build (static musl)
98+
env:
99+
RUSTFLAGS: "-D warnings ${{ matrix.rustflags }}"
95100
run: |
96101
cargo build \
97102
${{ matrix.build_args }} \

0 commit comments

Comments
 (0)