diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 13f5b56895a447f7d9c50dd6ef2e753b5839773f..253e4009790b444306f5eae06a6dcb102add67b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: sh ci/x86_64-linux-debug.sh x86_64-linux-debug-llvm: @@ -26,6 +28,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: sh ci/x86_64-linux-debug-llvm.sh x86_64-linux-release: @@ -34,6 +38,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: sh ci/x86_64-linux-release.sh aarch64-linux-debug: @@ -41,6 +47,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: sh ci/aarch64-linux-debug.sh aarch64-linux-release: @@ -48,6 +56,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: sh ci/aarch64-linux-release.sh aarch64-macos-debug: @@ -55,6 +65,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: ci/aarch64-macos-debug.sh aarch64-macos-release: @@ -62,6 +74,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: ci/aarch64-macos-release.sh x86_64-windows-debug: @@ -70,6 +84,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: ci/x86_64-windows-debug.ps1 x86_64-windows-release: @@ -78,5 +94,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build and Test run: ci/x86_64-windows-release.ps1 diff --git a/ci/aarch64-linux-debug.sh b/ci/aarch64-linux-debug.sh index 179ae99f0001eaef3bd4d3244f49bad907c10514..67514c87d88b72b691ad56cbdc35a99cd8e6da38 100755 --- a/ci/aarch64-linux-debug.sh +++ b/ci/aarch64-linux-debug.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/aarch64-linux-release.sh b/ci/aarch64-linux-release.sh index 2988e939f8929ccf77f72ee537e7d93befe6466d..11fb70aa64737bf8ec47c90d727c4e230f7fbba2 100755 --- a/ci/aarch64-linux-release.sh +++ b/ci/aarch64-linux-release.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/aarch64-macos-debug.sh b/ci/aarch64-macos-debug.sh index 93d05a9c220f95b01be3e0790c0173465c26fcda..4b32093673ab265d4a3bb1ede0f71c3df0218620 100755 --- a/ci/aarch64-macos-debug.sh +++ b/ci/aarch64-macos-debug.sh @@ -21,11 +21,6 @@ fi cd $ZIGDIR -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/aarch64-macos-release.sh b/ci/aarch64-macos-release.sh index 55915e71fdf6af32272d771e3e2b6ce2d6366170..1db6d16fa01373590596825e0846d5f33f012cc8 100755 --- a/ci/aarch64-macos-release.sh +++ b/ci/aarch64-macos-release.sh @@ -21,11 +21,6 @@ fi cd $ZIGDIR -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/aarch64-windows.ps1 b/ci/aarch64-windows.ps1 index 83b0f0a9b10a3e362ecfca2a949a706482d8f187..0bebaefb681ad9ff892b24d3f4acbefb3812cbe6 100644 --- a/ci/aarch64-windows.ps1 +++ b/ci/aarch64-windows.ps1 @@ -22,14 +22,6 @@ function CheckLastExitCode { return 0 } -# Make the `zig version` number consistent. -# This will affect the `zig build` command below which uses `git describe`. -git fetch --tags - -if ((git rev-parse --is-shallow-repository) -eq "true") { - git fetch --unshallow # `git describe` won't work on a shallow repo -} - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/loongarch64-linux-debug.sh b/ci/loongarch64-linux-debug.sh index 3ccedd24c9624796437ff150736321883470d720..6db44599445829392c5573adc33e64ff50a9f076 100755 --- a/ci/loongarch64-linux-debug.sh +++ b/ci/loongarch64-linux-debug.sh @@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.157+7fdd60df1" PREFIX="$HOME/deps/$CACHE_BASENAME" ZIG="$PREFIX/bin/zig" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/loongarch64-linux-release.sh b/ci/loongarch64-linux-release.sh index 0ae4403ee02c46c56e34bb8c71c19764f7b67bf9..58cc46aee8c53f787c11b9dbf3f1ee124f9aaf81 100755 --- a/ci/loongarch64-linux-release.sh +++ b/ci/loongarch64-linux-release.sh @@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.157+7fdd60df1" PREFIX="$HOME/deps/$CACHE_BASENAME" ZIG="$PREFIX/bin/zig" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/riscv64-linux-debug.sh b/ci/riscv64-linux-debug.sh index 334dc8d8ee751f85d47d94624b9d0bdb345db045..c7660962e340d9d6a31ed01538a1069302e13b38 100755 --- a/ci/riscv64-linux-debug.sh +++ b/ci/riscv64-linux-debug.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/riscv64-linux-release.sh b/ci/riscv64-linux-release.sh index 1ee76c1512fe775bfe6d6eb8c9c0f82ff8ee18fb..65f46cbbd92102bc0e5067314818aac757a0ac6f 100755 --- a/ci/riscv64-linux-release.sh +++ b/ci/riscv64-linux-release.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-freebsd-debug.sh b/ci/x86_64-freebsd-debug.sh index 5d0cac676c15c6649fc9266b5129a3367456e875..b2d0c0b53f3413081c0b3528356d7468efb49c60 100755 --- a/ci/x86_64-freebsd-debug.sh +++ b/ci/x86_64-freebsd-debug.sh @@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.312+164c598cd" PREFIX="$HOME/deps/$CACHE_BASENAME" ZIG="$PREFIX/bin/zig" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-freebsd-release.sh b/ci/x86_64-freebsd-release.sh index c57c1ebf47b730ab1ec871a61f907d9d5ccc7522..c3c901c5e4768c40606af307cc55f67d35d59dd2 100755 --- a/ci/x86_64-freebsd-release.sh +++ b/ci/x86_64-freebsd-release.sh @@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.312+164c598cd" PREFIX="$HOME/deps/$CACHE_BASENAME" ZIG="$PREFIX/bin/zig" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-linux-debug-llvm.sh b/ci/x86_64-linux-debug-llvm.sh index 8bec5f8d2626f3fc16b7a04252640f89e51adda4..306fbef755b66a48e13a1fcb0ddbe6c6eb16957e 100755 --- a/ci/x86_64-linux-debug-llvm.sh +++ b/ci/x86_64-linux-debug-llvm.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-linux-debug.sh b/ci/x86_64-linux-debug.sh index 1b1a19b874c315cdc0d65657746ba07f9a72fcae..3506510acf235844e1f7dcb1d8b97dfbc30821bb 100755 --- a/ci/x86_64-linux-debug.sh +++ b/ci/x86_64-linux-debug.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh index 9540a87d11b4e8cda3ce9df5a03c62390137eca7..06cf9cb307670e64462f53fe1b6d40733ed84caf 100755 --- a/ci/x86_64-linux-release.sh +++ b/ci/x86_64-linux-release.sh @@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig" export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH" -# Make the `zig version` number consistent. -# This will affect the cmake command below. -git fetch --unshallow || true -git fetch --tags - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-windows-debug.ps1 b/ci/x86_64-windows-debug.ps1 index 969de8dcc74e947e4ca74e6892e39d179aadbcb7..f44c5a04f7c9598d0ffd092f7d558e1a514b9361 100644 --- a/ci/x86_64-windows-debug.ps1 +++ b/ci/x86_64-windows-debug.ps1 @@ -22,14 +22,6 @@ function CheckLastExitCode { return 0 } -# Make the `zig version` number consistent. -# This will affect the `zig build` command below which uses `git describe`. -git fetch --tags - -if ((git rev-parse --is-shallow-repository) -eq "true") { - git fetch --unshallow # `git describe` won't work on a shallow repo -} - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason. diff --git a/ci/x86_64-windows-release.ps1 b/ci/x86_64-windows-release.ps1 index d387a215e81519957c59b3ce2b8a7943d738381f..c419cd309d3ccbb2f04cfcc9a92e1eee26dcb29d 100644 --- a/ci/x86_64-windows-release.ps1 +++ b/ci/x86_64-windows-release.ps1 @@ -22,14 +22,6 @@ function CheckLastExitCode { return 0 } -# Make the `zig version` number consistent. -# This will affect the `zig build` command below which uses `git describe`. -git fetch --tags - -if ((git rev-parse --is-shallow-repository) -eq "true") { - git fetch --unshallow # `git describe` won't work on a shallow repo -} - # Override the cache directories because they won't actually help other CI runs # which will be testing alternate versions of zig, and ultimately would just # fill up space on the hard drive for no reason.