ci: install musl target via rust-toolchain.toml file (#1664)

Targets specified in the `rust-toolchain.toml` file are automatically installed by `rustup`. This avoid setup steps for other devs and also simplifies the CI setup.

To be able to compile native code to musl, we do need `musl-gcc` which comes with the `musl-tools` package on ubuntu.
This commit is contained in:
Thomas Eizinger
2023-06-19 23:51:54 +02:00
committed by GitHub
parent 533b12c99e
commit 0f594f44bc
2 changed files with 2 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./rust
- run: rustup target add x86_64-unknown-linux-musl
- run: sudo apt-get install -y musl-tools
- run: cargo build --bin relay --target x86_64-unknown-linux-musl
relay_smoke: