mirror of
https://codeberg.org/Toasterson/solstice-ci.git
synced 2026-04-10 21:30:41 +00:00
This commit introduces `bindgen-cli` installation and sets up `BINDGEN_EXTRA_CLANG_ARGS` passthrough in `Cross.toml`. It also updates the pre-build process with necessary packages (`clang`, `libclang-dev`), alternative compilers, and adds `aws-lc-rs` with `bindgen` support to `workflow-runner` dependencies.
19 lines
No EOL
797 B
TOML
19 lines
No EOL
797 B
TOML
# Cross configuration for building the workflow runner for VM targets
|
|
# Reference: https://github.com/cross-rs/cross
|
|
[build.env]
|
|
passthrough = ["BINDGEN_EXTRA_CLANG_ARGS", "BINDGEN_EXTRA_CLANG_ARGS=-I/usr/lib/llvm-13/lib/clang/13.0.0/include"]
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main"
|
|
|
|
[target.x86_64-unknown-illumos]
|
|
image = "ghcr.io/cross-rs/x86_64-unknown-illumos:main"
|
|
|
|
[build]
|
|
pre-build = [
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
"apt-get update && apt-get install --assume-yes protobuf-compiler libclang-dev clang build-essential",
|
|
"cargo install --force --locked bindgen-cli",
|
|
"update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100",
|
|
"update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100"
|
|
] |