taiki-e / setup-cross-toolchain-action

GitHub Action for setup toolchains for cross compilation and cross testing for Rust.
Apache License 2.0
33 stars 3 forks source link

installing required library headers #21

Open tjallingt opened 2 months ago

tjallingt commented 2 months ago

I want to compile an SLint application for aarch64-unknown-linux-gnu and it needs some library headers to be available. Would it be possible to install these? if so how?

Using https://github.com/cross-rs/cross it is possible to add apt-get update && apt-get --assume-yes install libgbm-dev:$CROSS_DEB_ARCH libxkbcommon-dev:$CROSS_DEB_ARCH libinput-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH to the pre-build.

Using this action could it be done by just running apt-get update && apt-get --assume-yes install libgbm-dev libxkbcommon-dev libinput-dev libudev-dev?

taiki-e commented 1 month ago

Using this action could it be done by just running apt-get update && apt-get --assume-yes install libgbm-dev libxkbcommon-dev libinput-dev libudev-dev?

No.

In environments that use regular mirrors (e.g., in containers), (sudo) dpkg --add-architecture arm64 + (sudo) apt-get update + (sudo) apt-get install -y <package>:arm64 should work.

However, GitHub-hosted runners uses Microsoft's special mirrors and may require additional operations before apt-get update.

I'm fine with adding an option like packages: <package>,... to do them on this action side.