ci: freebsd: update to llvm 12

This commit is contained in:
Andrew Kelley 2021-04-14 22:59:17 -07:00
parent 1438c324a4
commit 406353103a

View File

@ -4,12 +4,11 @@ set -x
set -e
sudo pkg update -fq
sudo pkg install -y cmake py37-s3cmd wget curl jq
sudo pkg install -y cmake py37-s3cmd wget curl jq samurai
ZIGDIR="$(pwd)"
CACHE_BASENAME="llvm+clang+lld-11.0.0-x86_64-freebsd-release"
CACHE_BASENAME="zig+llvm+lld+clang-x86_64-freebsd-gnu-0.8.0-dev.1939+5a3ea9bec"
PREFIX="$HOME/$CACHE_BASENAME"
JOBS="-j$(sysctl -n hw.ncpu)"
cd $HOME
wget -nv "https://ziglang.org/deps/$CACHE_BASENAME.tar.xz"
@ -30,8 +29,8 @@ export TERM=dumb
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX "-DCMAKE_INSTALL_PREFIX=$(pwd)/release" -DZIG_STATIC=ON
make $JOBS install
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX "-DCMAKE_INSTALL_PREFIX=$(pwd)/release" -DZIG_STATIC=ON -GNinja
samu install
# Here we skip some tests to save time.
release/bin/zig build test -Dskip-compile-errors -Dskip-non-native