Skip to content

Commit

Permalink
chore(ci): install zig on centos (#13915)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Dec 4, 2023
1 parent 88ea3d3 commit 0a9c009
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/setup/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ function install_ziglang {
fi
echo "==> installing ziglang..."

arch=$(uname -m)
case "$PACKAGE_MANAGER" in
apt-get)
curl -sSfLo /tmp/zig.tar.xz https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz
apt-get | yum | dnf | pacman)
curl -sSfLo /tmp/zig.tar.xz "https://ziglang.org/download/0.11.0/zig-linux-${arch}-0.11.0.tar.xz"
tar -xf /tmp/zig.tar.xz -C /tmp
"${PRE_COMMAND[@]}" cp /tmp/zig-linux-x86_64-0.11.0/zig /usr/local/bin/
"${PRE_COMMAND[@]}" cp "/tmp/zig-linux-${arch}-0.11.0/zig" /usr/local/bin/
"${PRE_COMMAND[@]}" chmod +x /usr/local/bin/zig
rm -rf /tmp/zig*
;;
yum | dnf | brew | pacman)
brew)
install_pkg zig "$PACKAGE_MANAGER"
;;
*)
Expand Down

0 comments on commit 0a9c009

Please sign in to comment.