Skip to content

Commit 7bb1c2f

Browse files
roypatstefano-garzarella
authored andcommitted
install rustup targets for MacOS and Windows
Some of the rust-vmm crates (such as vmm-sys-util and vm-memory) have somewhat rudimentary support for MacOS and Windows. While our CI does not have the means to test these platforms (the rust-vmm CI runners are linux-only), it can at least do some simple compile testing using `cargo check` (as long as we do not have any build dependencies that try to compile native libraries). For this, install the required cargo targets into the docker container, such that crates that wish to do such compile testing can specify such additional tests in their custom tests pipelines. Signed-off-by: Patrick Roy <[email protected]>
1 parent 5e96268 commit 7bb1c2f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build_container.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ if [ "$ARCH" != "riscv64" ]; then
7777
rustup target add $ARCH-unknown-linux-musl $ARCH-unknown-none
7878
fi
7979

80+
# The below are only used for compile-testing via cargo check.
81+
# It suffices to do that on _one_ architecture.
82+
if [ "$ARCH" == "x86_64" ]; then
83+
rustup target add aarch64-apple-darwin x86_64-pc-windows-gnu
84+
fi
85+
8086
cargo install cargo-llvm-cov
8187

8288
# Install the codecov.io uploader. Not available on riscv64, so skip there

0 commit comments

Comments
 (0)