Skip to content

Commit

Permalink
add the musl test
Browse files Browse the repository at this point in the history
Signed-off-by: yihuaf <yihuaf@unkies.org>
  • Loading branch information
yihuaf committed Jun 18, 2023
1 parent 30e7177 commit 0c94208
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/test_musl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/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"

0 comments on commit 0c94208

Please sign in to comment.