Skip to content

Commit

Permalink
Add zlib headers in install-zstd.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored Feb 12, 2023
1 parent ebc1687 commit e86f7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-zstd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo mkdir -p /opt/zstd
zstd_dir="zstd-$(curl -sL https://github.com/facebook/zstd/releases/latest | grep -Po "tree/v(\d+\.\d+\.\d+)" | cut -d'v' -f 2 | head -n 1)"
zstd_url=$(curl -sL https://api.github.com/repos/"$REPO"/actions/artifacts | jq -r --arg zstd_dir "$zstd_dir-ubuntu$VERSION_ID" '.artifacts[] | select(.name=="\($zstd_dir)").archive_download_url' 2>/dev/null | head -n 1)
if [ "x$zstd_url" = "x" ]; then
sudo apt-get install zlib1g liblzma-dev liblz4-dev -y
sudo apt-get install zlib1g-dev liblzma-dev liblz4-dev -y
curl -o /tmp/zstd.tar.gz -sL https://github.com/facebook/zstd/releases/latest/download/"$zstd_dir".tar.gz
tar -xzf /tmp/zstd.tar.gz -C /tmp
(
Expand Down

0 comments on commit e86f7d9

Please sign in to comment.