Skip to content

Commit

Permalink
Don't pipe wget output to tar during mold installation
Browse files Browse the repository at this point in the history
This fails with cryptic errors, so break the pipeline in parts.
  • Loading branch information
vadz committed Dec 11, 2023
1 parent 4119e7d commit eae125e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ case "$(uname)" in
run_apt install ${packages_to_install}

# Get mold and replace the default linker with it.
wget --quiet -O- https://github.com/rui314/mold/releases/download/v2.4.0/mold-2.4.0-$(uname -m)-linux.tar.gz | \
sudo tar -C /usr/local --strip-components=1 -xzf -
mold_ver=2.4.0
mold_name=mold-${mold_ver}-$(uname -m)-linux.tar.gz
wget https://github.com/rui314/mold/releases/download/v${mold_ver}/${mold_name}
sudo tar -C /usr/local --strip-components=1 -xzf ${mold_name}
sudo ln -sf /usr/local/bin/mold /usr/bin/ld
;;

Expand Down

0 comments on commit eae125e

Please sign in to comment.