authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-28 19:44:02+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-01 13:00:22+02:00
log781cc731ed81be33a13d5f1c85c7dc6bc8ec5218
tree6a9548d78405ccb202039555cfa4e19a9a9ea5c9
parentacf8d5234fdb86b23e37761f3f58505f6247a28c
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

ci: move Git repository unshallowing to the workflow


17 files changed, 18 insertions(+), 89 deletions(-)

.github/workflows/ci.yaml+18
......@@ -18,6 +18,8 @@ jobs:
1818 steps:
1919 - name: Checkout
2020 uses: actions/checkout@v4
21 with:
22 fetch-depth: 0
2123 - name: Build and Test
2224 run: sh ci/x86_64-linux-debug.sh
2325 x86_64-linux-debug-llvm:
......@@ -26,6 +28,8 @@ jobs:
2628 steps:
2729 - name: Checkout
2830 uses: actions/checkout@v4
31 with:
32 fetch-depth: 0
2933 - name: Build and Test
3034 run: sh ci/x86_64-linux-debug-llvm.sh
3135 x86_64-linux-release:
......@@ -34,6 +38,8 @@ jobs:
3438 steps:
3539 - name: Checkout
3640 uses: actions/checkout@v4
41 with:
42 fetch-depth: 0
3743 - name: Build and Test
3844 run: sh ci/x86_64-linux-release.sh
3945 aarch64-linux-debug:
......@@ -41,6 +47,8 @@ jobs:
4147 steps:
4248 - name: Checkout
4349 uses: actions/checkout@v4
50 with:
51 fetch-depth: 0
4452 - name: Build and Test
4553 run: sh ci/aarch64-linux-debug.sh
4654 aarch64-linux-release:
......@@ -48,6 +56,8 @@ jobs:
4856 steps:
4957 - name: Checkout
5058 uses: actions/checkout@v4
59 with:
60 fetch-depth: 0
5161 - name: Build and Test
5262 run: sh ci/aarch64-linux-release.sh
5363 aarch64-macos-debug:
......@@ -55,6 +65,8 @@ jobs:
5565 steps:
5666 - name: Checkout
5767 uses: actions/checkout@v4
68 with:
69 fetch-depth: 0
5870 - name: Build and Test
5971 run: ci/aarch64-macos-debug.sh
6072 aarch64-macos-release:
......@@ -62,6 +74,8 @@ jobs:
6274 steps:
6375 - name: Checkout
6476 uses: actions/checkout@v4
77 with:
78 fetch-depth: 0
6579 - name: Build and Test
6680 run: ci/aarch64-macos-release.sh
6781 x86_64-windows-debug:
......@@ -70,6 +84,8 @@ jobs:
7084 steps:
7185 - name: Checkout
7286 uses: actions/checkout@v4
87 with:
88 fetch-depth: 0
7389 - name: Build and Test
7490 run: ci/x86_64-windows-debug.ps1
7591 x86_64-windows-release:
......@@ -78,5 +94,7 @@ jobs:
7894 steps:
7995 - name: Checkout
8096 uses: actions/checkout@v4
97 with:
98 fetch-depth: 0
8199 - name: Build and Test
82100 run: ci/x86_64-windows-release.ps1
ci/aarch64-linux-debug.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/aarch64-linux-release.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/aarch64-macos-debug.sh-5
......@@ -21,11 +21,6 @@ fi
2121
2222cd $ZIGDIR
2323
24# Make the `zig version` number consistent.
25# This will affect the cmake command below.
26git fetch --unshallow || true
27git fetch --tags
28
2924# Override the cache directories because they won't actually help other CI runs
3025# which will be testing alternate versions of zig, and ultimately would just
3126# fill up space on the hard drive for no reason.
ci/aarch64-macos-release.sh-5
......@@ -21,11 +21,6 @@ fi
2121
2222cd $ZIGDIR
2323
24# Make the `zig version` number consistent.
25# This will affect the cmake command below.
26git fetch --unshallow || true
27git fetch --tags
28
2924# Override the cache directories because they won't actually help other CI runs
3025# which will be testing alternate versions of zig, and ultimately would just
3126# fill up space on the hard drive for no reason.
ci/aarch64-windows.ps1-8
......@@ -22,14 +22,6 @@ function CheckLastExitCode {
2222 return 0
2323}
2424
25# Make the `zig version` number consistent.
26# This will affect the `zig build` command below which uses `git describe`.
27git fetch --tags
28
29if ((git rev-parse --is-shallow-repository) -eq "true") {
30 git fetch --unshallow # `git describe` won't work on a shallow repo
31}
32
3325# Override the cache directories because they won't actually help other CI runs
3426# which will be testing alternate versions of zig, and ultimately would just
3527# fill up space on the hard drive for no reason.
ci/loongarch64-linux-debug.sh-5
......@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.157+7fdd60df1"
1111PREFIX="$HOME/deps/$CACHE_BASENAME"
1212ZIG="$PREFIX/bin/zig"
1313
14# Make the `zig version` number consistent.
15# This will affect the cmake command below.
16git fetch --unshallow || true
17git fetch --tags
18
1914# Override the cache directories because they won't actually help other CI runs
2015# which will be testing alternate versions of zig, and ultimately would just
2116# fill up space on the hard drive for no reason.
ci/loongarch64-linux-release.sh-5
......@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.157+7fdd60df1"
1111PREFIX="$HOME/deps/$CACHE_BASENAME"
1212ZIG="$PREFIX/bin/zig"
1313
14# Make the `zig version` number consistent.
15# This will affect the cmake command below.
16git fetch --unshallow || true
17git fetch --tags
18
1914# Override the cache directories because they won't actually help other CI runs
2015# which will be testing alternate versions of zig, and ultimately would just
2116# fill up space on the hard drive for no reason.
ci/riscv64-linux-debug.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/riscv64-linux-release.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/x86_64-freebsd-debug.sh-5
......@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.312+164c598cd"
1111PREFIX="$HOME/deps/$CACHE_BASENAME"
1212ZIG="$PREFIX/bin/zig"
1313
14# Make the `zig version` number consistent.
15# This will affect the cmake command below.
16git fetch --unshallow || true
17git fetch --tags
18
1914# Override the cache directories because they won't actually help other CI runs
2015# which will be testing alternate versions of zig, and ultimately would just
2116# fill up space on the hard drive for no reason.
ci/x86_64-freebsd-release.sh-5
......@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.312+164c598cd"
1111PREFIX="$HOME/deps/$CACHE_BASENAME"
1212ZIG="$PREFIX/bin/zig"
1313
14# Make the `zig version` number consistent.
15# This will affect the cmake command below.
16git fetch --unshallow || true
17git fetch --tags
18
1914# Override the cache directories because they won't actually help other CI runs
2015# which will be testing alternate versions of zig, and ultimately would just
2116# fill up space on the hard drive for no reason.
ci/x86_64-linux-debug-llvm.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/x86_64-linux-debug.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/x86_64-linux-release.sh-5
......@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
1414export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH"
1515
16# Make the `zig version` number consistent.
17# This will affect the cmake command below.
18git fetch --unshallow || true
19git fetch --tags
20
2116# Override the cache directories because they won't actually help other CI runs
2217# which will be testing alternate versions of zig, and ultimately would just
2318# fill up space on the hard drive for no reason.
ci/x86_64-windows-debug.ps1-8
......@@ -22,14 +22,6 @@ function CheckLastExitCode {
2222 return 0
2323}
2424
25# Make the `zig version` number consistent.
26# This will affect the `zig build` command below which uses `git describe`.
27git fetch --tags
28
29if ((git rev-parse --is-shallow-repository) -eq "true") {
30 git fetch --unshallow # `git describe` won't work on a shallow repo
31}
32
3325# Override the cache directories because they won't actually help other CI runs
3426# which will be testing alternate versions of zig, and ultimately would just
3527# fill up space on the hard drive for no reason.
ci/x86_64-windows-release.ps1-8
......@@ -22,14 +22,6 @@ function CheckLastExitCode {
2222 return 0
2323}
2424
25# Make the `zig version` number consistent.
26# This will affect the `zig build` command below which uses `git describe`.
27git fetch --tags
28
29if ((git rev-parse --is-shallow-repository) -eq "true") {
30 git fetch --unshallow # `git describe` won't work on a shallow repo
31}
32
3325# Override the cache directories because they won't actually help other CI runs
3426# which will be testing alternate versions of zig, and ultimately would just
3527# fill up space on the hard drive for no reason.