authorgravatar for jay@jayschwa.netJay Petacat <jay@jayschwa.net> 2021-01-01 18:40:46-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-01 20:41:39-07:00
log993f4b5a06b5984d3d81e5910403cf15293f25b1
tree0fd4c7877f924b1462adf70fec77d0b1204fd315
parentd3ecbbebd33fffc2e283d0c6524c3647c894fa1b

ci: fix `git describe`

git describe is used for version string creation, but it had to be reverted in commit 69da6ba because it was broken in CI builds. Azure Pipelines and Drone perform shallow clones by default. This change reconfigures them to fetch history and tags. It adds tens of seconds, which is negligible compared to overall build and test time. Related: #6466, #6509, #7601

5 files changed, 10 insertions(+), 0 deletions(-)

ci/azure/linux_script+2
......@@ -49,6 +49,8 @@ PATH=$PWD/$WASMTIME:$PATH
4949# Make the `zig version` number consistent.
5050# This will affect the cmake command below.
5151git config core.abbrev 9
52git fetch --unshallow || true
53git fetch --tags
5254
5355export CC=gcc-7
5456export CXX=g++-7
ci/azure/macos_script+2
......@@ -28,6 +28,8 @@ cd $ZIGDIR
2828# Make the `zig version` number consistent.
2929# This will affect the cmake command below.
3030git config core.abbrev 9
31git fetch --unshallow || true
32git fetch --tags
3133
3234mkdir build
3335cd build
ci/azure/windows_msvc_script.bat+2
......@@ -18,6 +18,8 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliar
1818REM Make the `zig version` number consistent.
1919REM This will affect the cmake command below.
2020git.exe config core.abbrev 9
21git.exe fetch --unshallow
22git.exe fetch --tags
2123
2224mkdir %ZIGBUILDDIR%
2325cd %ZIGBUILDDIR%
ci/drone/linux_script+2
......@@ -14,6 +14,8 @@ pip3 install s3cmd
1414# Make the `zig version` number consistent.
1515# This will affect the cmake command below.
1616git config core.abbrev 9
17git fetch --unshallow || true
18git fetch --tags
1719
1820mkdir build
1921cd build
ci/srht/freebsd_script+2
......@@ -20,6 +20,8 @@ cd $ZIGDIR
2020# Make the `zig version` number consistent.
2121# This will affect the cmake command below.
2222git config core.abbrev 9
23git fetch --unshallow || true
24git fetch --tags
2325
2426# SourceHut reports that it is a terminal that supports escape codes, but it
2527# is a filthy liar. Here we tell Zig to not try to send any terminal escape