Skip to content

Commit

Permalink
sudo musl-tools fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-4 authored Nov 14, 2023
1 parent d9914bb commit 3ada01d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ci/build_basic_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ada01d

Please sign in to comment.