mirror of
https://github.com/containers/youki
synced 2024-05-08 00:26:14 +02:00
bef32e083f
* Introduce seccomp feature for libcontainer with musl Signed-off-by: Kris Nóva <kris@nivenly.com> * remove mystery merge conflict Signed-off-by: Eric Fang <yihuaf@unkies.org> --------- Signed-off-by: Kris Nóva <kris@nivenly.com> Signed-off-by: Eric Fang <yihuaf@unkies.org> Co-authored-by: Eric Fang <yihuaf@unkies.org>
32 lines
975 B
Bash
Executable File
32 lines
975 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
# Build the different features individually
|
|
cargo build --no-default-features -F v1
|
|
cargo build --no-default-features -F v2
|
|
cargo build --no-default-features -F systemd
|
|
cargo build --no-default-features -F v2 -F cgroupsv2_devices
|
|
cargo build --no-default-features -F systemd -F cgroupsv2_devices
|
|
|
|
# Test the different features individually
|
|
cargo test --no-default-features -F v1
|
|
cargo test --no-default-features -F v2
|
|
cargo test --no-default-features -F systemd
|
|
cargo test --no-default-features -F v2 -F cgroupsv2_devices
|
|
cargo test --no-default-features -F systemd -F cgroupsv2_devices
|
|
|
|
# Build with musl: libcontainer
|
|
cargo +nightly build \
|
|
-Zbuild-std \
|
|
--target $(uname -m)-unknown-linux-musl \
|
|
--package libcontainer \
|
|
--no-default-features -F v2
|
|
|
|
# Test with musl: libcontainer
|
|
cargo +nightly test \
|
|
-Zbuild-std \
|
|
--target $(uname -m)-unknown-linux-musl \
|
|
--package libcontainer \
|
|
--no-default-features -F v2
|
|
|
|
exit 0 |