1
0
mirror of https://github.com/containers/youki synced 2024-09-20 02:41:47 +02:00
youki/scripts/musl_test.sh
Eric Fang dfe6ee80bc
turn on musl test in CI (#2069)
* turn musl test in CI

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix a version

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-06-22 20:35:23 +09:00

22 lines
536 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
test_musl() {
echo "[musl test] testing $1 with features $2"
cargo +nightly build \
-Zbuild-std \
--target $(uname -m)-unknown-linux-musl \
--package libcontainer \
--no-default-features -F v2
cargo +nightly test \
-Zbuild-std \
--target $(uname -m)-unknown-linux-musl \
--package libcontainer \
--no-default-features -F v2
}
test_musl "libcontainer" "v1"
test_musl "libcontainer" "v2"
test_musl "libcontainer" "v1 v2"