ci: force git name-rev to be 9 on all targets
parent
aa2607a109
commit
c5e26b8673
|
@ -14,6 +14,10 @@ sudo apt-get remove -y llvm-*
|
|||
sudo rm -rf /usr/local/*
|
||||
sudo apt-get install -y libxml2-dev libclang-9-dev llvm-9 llvm-9-dev cmake s3cmd gcc-7 g++-7 qemu
|
||||
|
||||
# Make the `zig version` number consistent.
|
||||
# This will affect the cmake command below.
|
||||
git config core.abbrev 9
|
||||
|
||||
export CC=gcc-7
|
||||
export CXX=g++-7
|
||||
mkdir build
|
||||
|
|
|
@ -67,6 +67,10 @@ else
|
|||
s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$CACHE_BASENAME.tar.xz" "s3://ziglang.org/builds/$CACHE_BASENAME.tar.xz"
|
||||
fi
|
||||
|
||||
# Make the `zig version` number consistent.
|
||||
# This will affect the cmake command below.
|
||||
git config core.abbrev 9
|
||||
|
||||
cd $ZIGDIR
|
||||
mkdir build
|
||||
cd build
|
||||
|
|
|
@ -11,6 +11,10 @@ apk update
|
|||
apk add py3-pip xz perl-utils
|
||||
pip3 install s3cmd
|
||||
|
||||
# Make the `zig version` number consistent.
|
||||
# This will affect the cmake command below.
|
||||
git config core.abbrev 9
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$DISTDIR" -DZIG_STATIC=ON -DCMAKE_PREFIX_PATH=/deps/local
|
||||
|
|
|
@ -8,6 +8,10 @@ CACHE_BASENAME="llvm+clang-9.0.0-freebsd-x86_64-release"
|
|||
PREFIX="$HOME/$CACHE_BASENAME"
|
||||
JOBS="-j$(sysctl -n hw.ncpu)"
|
||||
|
||||
# Make the `zig version` number consistent.
|
||||
# This will affect the cmake command below.
|
||||
git config core.abbrev 9
|
||||
|
||||
cd $HOME
|
||||
wget -nv "https://ziglang.org/builds/$CACHE_BASENAME.tar.xz"
|
||||
tar xf "$CACHE_BASENAME.tar.xz"
|
||||
|
|
Loading…
Reference in New Issue