Skip to content

Commit f9bf2e4

Browse files
Paul Cwolfsoftwaresystemsltd
andcommitted
fix: WolfDisk CI — add Cross.toml for FUSE cross-compilation
The fuser crate needs libfuse-dev headers during cross-compilation. Added Cross.toml with pre-build steps to install libfuse-dev and pkg-config in the cross build container. Set PKG_CONFIG_ALLOW_CROSS=1. Co-Authored-By: CodeWolf <paul@wolf.uk.com> Co-Authored-By: Wolf Software Systems Ltd <paul@wolf.uk.com>
1 parent 7ea61fe commit f9bf2e4

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/wolfdisk-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- 'wolfdisk/Cargo.toml'
88
- 'wolfdisk/src/**'
9+
- 'wolfdisk/Cross.toml'
910
- '.github/workflows/wolfdisk-release.yml'
1011
workflow_dispatch:
1112

@@ -39,6 +40,8 @@ jobs:
3940
working-directory: .
4041

4142
- name: Build static binaries
43+
env:
44+
PKG_CONFIG_ALLOW_CROSS: "1"
4245
run: cross build --release --target ${{ matrix.target }}
4346

4447
- name: Get version

wolfdisk/Cross.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.x86_64-unknown-linux-musl]
2+
pre-build = ["apt-get update && apt-get install -y libfuse-dev pkg-config"]
3+
4+
[target.aarch64-unknown-linux-musl]
5+
pre-build = ["apt-get update && apt-get install -y libfuse-dev pkg-config"]
6+
7+
[target.x86_64-unknown-linux-musl.env]
8+
passthrough = ["PKG_CONFIG_ALLOW_CROSS=1"]
9+
10+
[target.aarch64-unknown-linux-musl.env]
11+
passthrough = ["PKG_CONFIG_ALLOW_CROSS=1"]

0 commit comments

Comments
 (0)