Last active
August 11, 2023 12:21
-
-
Save dk949/9f831f262b347aad52c678de2eb097cf to your computer and use it in GitHub Desktop.
Build zls for different versions of Zig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# VERSION_LIST=("0.7.0" "0.7.1" "0.8.0" "0.8.1" "0.9.0" "0.9.1" "0.10.0" "0.10.1" "0.11.0" "master") | |
VERSION_LIST=("0.9.1" "0.10.1" "0.11.0" "master") | |
git clone https://github.com/zigtools/zls | |
cd zls | |
for ver in "${VERSION_LIST[@]}"; do | |
zig build -Doptimize=ReleaseSafe -Ddata_version="$ver" && mv zig-out/bin/zls "zig-out/bin/zls-$ver" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment