| author | |
| committer | |
| log | 993f4b5a06b5984d3d81e5910403cf15293f25b1 |
| tree | 0fd4c7877f924b1462adf70fec77d0b1204fd315 |
| parent | d3ecbbebd33fffc2e283d0c6524c3647c894fa1b |
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, #76015 files changed, 10 insertions(+), 0 deletions(-)
ci/azure/linux_script+2| ... | @@ -49,6 +49,8 @@ PATH=$PWD/$WASMTIME:$PATH | ... | @@ -49,6 +49,8 @@ PATH=$PWD/$WASMTIME:$PATH |
| 49 | # Make the `zig version` number consistent. | 49 | # Make the `zig version` number consistent. |
| 50 | # This will affect the cmake command below. | 50 | # This will affect the cmake command below. |
| 51 | git config core.abbrev 9 | 51 | git config core.abbrev 9 |
| 52 | git fetch --unshallow || true | ||
| 53 | git fetch --tags | ||
| 52 | 54 | ||
| 53 | export CC=gcc-7 | 55 | export CC=gcc-7 |
| 54 | export CXX=g++-7 | 56 | export CXX=g++-7 |
ci/azure/macos_script+2| ... | @@ -28,6 +28,8 @@ cd $ZIGDIR | ... | @@ -28,6 +28,8 @@ cd $ZIGDIR |
| 28 | # Make the `zig version` number consistent. | 28 | # Make the `zig version` number consistent. |
| 29 | # This will affect the cmake command below. | 29 | # This will affect the cmake command below. |
| 30 | git config core.abbrev 9 | 30 | git config core.abbrev 9 |
| 31 | git fetch --unshallow || true | ||
| 32 | git fetch --tags | ||
| 31 | 33 | ||
| 32 | mkdir build | 34 | mkdir build |
| 33 | cd build | 35 | cd build |
ci/azure/windows_msvc_script.bat+2| ... | @@ -18,6 +18,8 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliar | ... | @@ -18,6 +18,8 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliar |
| 18 | REM Make the `zig version` number consistent. | 18 | REM Make the `zig version` number consistent. |
| 19 | REM This will affect the cmake command below. | 19 | REM This will affect the cmake command below. |
| 20 | git.exe config core.abbrev 9 | 20 | git.exe config core.abbrev 9 |
| 21 | git.exe fetch --unshallow | ||
| 22 | git.exe fetch --tags | ||
| 21 | 23 | ||
| 22 | mkdir %ZIGBUILDDIR% | 24 | mkdir %ZIGBUILDDIR% |
| 23 | cd %ZIGBUILDDIR% | 25 | cd %ZIGBUILDDIR% |
ci/drone/linux_script+2| ... | @@ -14,6 +14,8 @@ pip3 install s3cmd | ... | @@ -14,6 +14,8 @@ pip3 install s3cmd |
| 14 | # Make the `zig version` number consistent. | 14 | # Make the `zig version` number consistent. |
| 15 | # This will affect the cmake command below. | 15 | # This will affect the cmake command below. |
| 16 | git config core.abbrev 9 | 16 | git config core.abbrev 9 |
| 17 | git fetch --unshallow || true | ||
| 18 | git fetch --tags | ||
| 17 | 19 | ||
| 18 | mkdir build | 20 | mkdir build |
| 19 | cd build | 21 | cd build |
ci/srht/freebsd_script+2| ... | @@ -20,6 +20,8 @@ cd $ZIGDIR | ... | @@ -20,6 +20,8 @@ cd $ZIGDIR |
| 20 | # Make the `zig version` number consistent. | 20 | # Make the `zig version` number consistent. |
| 21 | # This will affect the cmake command below. | 21 | # This will affect the cmake command below. |
| 22 | git config core.abbrev 9 | 22 | git config core.abbrev 9 |
| 23 | git fetch --unshallow || true | ||
| 24 | git fetch --tags | ||
| 23 | 25 | ||
| 24 | # SourceHut reports that it is a terminal that supports escape codes, but it | 26 | # SourceHut reports that it is a terminal that supports escape codes, but it |
| 25 | # is a filthy liar. Here we tell Zig to not try to send any terminal escape | 27 | # is a filthy liar. Here we tell Zig to not try to send any terminal escape |