-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CD workflows to use use
cross
* build: local cross compilation With the intention of migrating gh action to native solution with cross Supported targets: aarch-64-linux-gnu, armv7-unknown-linux-gnueabihf Use cross build --target (target) Note: docker base images have been updated. See related documentation: https://github.com/cross-rs/cross/wiki/FAQ#custom-images * build(cd): use cross for CD Update container images along with it. Also a couple actions. Use action-rs/cargo only for the built in support. It is the documented gh actions way in the cross README. Manually would probably increase times significantly. See aome510/spotify-player#343
- Loading branch information
Showing
3 changed files
with
25 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[build.env] | ||
passthrough = [ | ||
"CROSS_DEBUG", | ||
"RUST_BACKTRACE", | ||
] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
dockerfile = "./ci/Dockerfile-cross" | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
dockerfile = "./ci/Dockerfile-cross" |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ARG CROSS_BASE_IMAGE | ||
FROM $CROSS_BASE_IMAGE | ||
|
||
ARG CROSS_DEB_ARCH | ||
RUN dpkg --add-architecture $CROSS_DEB_ARCH && \ | ||
apt-get update && \ | ||
apt-get install -y libssl-dev:$CROSS_DEB_ARCH libasound2-dev:$CROSS_DEB_ARCH libdbus-1-dev:$CROSS_DEB_ARCH | ||
|