mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
|
||
---|---|---|
.. | ||
ubuntu-20.04 | ||
ubuntu-22.04 | ||
build.sh | ||
README.md |
Cross-building things using cargo cross
Here be dragons.
- Get a drink. You'l need it.
- Install cargo-cross
- Drink the drink.
Building Ubuntu 20.04 things
Make sure you're including --release
because reasons.
CROSS_CONFIG=platform/crossbuild/ubuntu-20.04/Cross.toml \
cross build --target aarch64-unknown-linux-gnu \
--bin kanidm_unixd \
--bin kanidm_unixd_tasks \
--bin kanidm_ssh_authorizedkeys \
--bin kanidm-unix \
--release
Things will end up in ./target/aarch64-unknown-linux-gnu/release/
Building Ubuntu 22.04 things
Make sure you're including --release
because reasons.
CROSS_CONFIG=platform/crossbuild/ubuntu-22.04/Cross.toml \
cross build --target aarch64-unknown-linux-gnu \
--bin kanidm_unixd \
--bin kanidm_unixd_tasks \
--bin kanidm_ssh_authorizedkeys \
--bin kanidm-unix \
--release
Things will end up in ./target/aarch64-unknown-linux-gnu/release/