From 3ada01dafdd9a9cdf449daeee1b79968e8094d7a Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:10:31 +0100 Subject: [PATCH] sudo musl-tools fix --- ci/build_basic_cli.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/build_basic_cli.sh b/ci/build_basic_cli.sh index 1019d55660a..832f6d316f7 100755 --- a/ci/build_basic_cli.sh +++ b/ci/build_basic_cli.sh @@ -6,7 +6,13 @@ set -euxo pipefail git clone https://github.com/roc-lang/basic-cli.git if [ "$(uname -s)" == "Linux" ]; then - sudo apt-get install -y musl-tools + + # check if musl-tools is installed + if ! dpkg -l | grep -q musl-tools; then + # install musl-tools with timeout for sudo problems with CI + timeout 300s sudo apt-get install -y musl-tools + fi + cd basic-cli/src # we cd to install the target for the right rust version if [ "$(uname -m)" == "x86_64" ]; then rustup target add x86_64-unknown-linux-musl