-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: improve cross-compilation and package building
- Add pkg-config environment variables for cross-compilation - Set proper library paths for x86_64 native build - Install dpkg-dev for Debian package building - Combine apt commands to reduce layers - Update GitHub Actions to v4 for upload/download artifacts - Format YAML files for better readability
- Loading branch information
Showing
2 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
[target.aarch64-unknown-linux-gnu] | ||
pre-build = [ | ||
"dpkg --add-architecture arm64", | ||
"apt-get update", | ||
"apt-get install -y libudev-dev:arm64" | ||
"dpkg --add-architecture arm64 && apt-get update && apt-get install -y libudev-dev:arm64", | ||
] | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
pre-build = [ | ||
"dpkg --add-architecture armhf", | ||
"apt-get update", | ||
"apt-get install -y libudev-dev:armhf" | ||
"dpkg --add-architecture armhf && apt-get update && apt-get install -y libudev-dev:armhf", | ||
] | ||
|
||
[build.env] | ||
passthrough = [ | ||
"PKG_CONFIG_ALLOW_CROSS", | ||
"PKG_CONFIG_PATH", | ||
"PKG_CONFIG_SYSROOT_DIR", | ||
"PKG_CONFIG_LIBDIR", | ||
] |