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:...@@ -18,6 +18,8 @@ jobs:
18 steps:18 steps:
19 - name: Checkout19 - name: Checkout
20 uses: actions/checkout@v420 uses: actions/checkout@v4
21 with:
22 fetch-depth: 0
21 - name: Build and Test23 - name: Build and Test
22 run: sh ci/x86_64-linux-debug.sh24 run: sh ci/x86_64-linux-debug.sh
23 x86_64-linux-debug-llvm:25 x86_64-linux-debug-llvm:
...@@ -26,6 +28,8 @@ jobs:...@@ -26,6 +28,8 @@ jobs:
26 steps:28 steps:
27 - name: Checkout29 - name: Checkout
28 uses: actions/checkout@v430 uses: actions/checkout@v4
31 with:
32 fetch-depth: 0
29 - name: Build and Test33 - name: Build and Test
30 run: sh ci/x86_64-linux-debug-llvm.sh34 run: sh ci/x86_64-linux-debug-llvm.sh
31 x86_64-linux-release:35 x86_64-linux-release:
...@@ -34,6 +38,8 @@ jobs:...@@ -34,6 +38,8 @@ jobs:
34 steps:38 steps:
35 - name: Checkout39 - name: Checkout
36 uses: actions/checkout@v440 uses: actions/checkout@v4
41 with:
42 fetch-depth: 0
37 - name: Build and Test43 - name: Build and Test
38 run: sh ci/x86_64-linux-release.sh44 run: sh ci/x86_64-linux-release.sh
39 aarch64-linux-debug:45 aarch64-linux-debug:
...@@ -41,6 +47,8 @@ jobs:...@@ -41,6 +47,8 @@ jobs:
41 steps:47 steps:
42 - name: Checkout48 - name: Checkout
43 uses: actions/checkout@v449 uses: actions/checkout@v4
50 with:
51 fetch-depth: 0
44 - name: Build and Test52 - name: Build and Test
45 run: sh ci/aarch64-linux-debug.sh53 run: sh ci/aarch64-linux-debug.sh
46 aarch64-linux-release:54 aarch64-linux-release:
...@@ -48,6 +56,8 @@ jobs:...@@ -48,6 +56,8 @@ jobs:
48 steps:56 steps:
49 - name: Checkout57 - name: Checkout
50 uses: actions/checkout@v458 uses: actions/checkout@v4
59 with:
60 fetch-depth: 0
51 - name: Build and Test61 - name: Build and Test
52 run: sh ci/aarch64-linux-release.sh62 run: sh ci/aarch64-linux-release.sh
53 aarch64-macos-debug:63 aarch64-macos-debug:
...@@ -55,6 +65,8 @@ jobs:...@@ -55,6 +65,8 @@ jobs:
55 steps:65 steps:
56 - name: Checkout66 - name: Checkout
57 uses: actions/checkout@v467 uses: actions/checkout@v4
68 with:
69 fetch-depth: 0
58 - name: Build and Test70 - name: Build and Test
59 run: ci/aarch64-macos-debug.sh71 run: ci/aarch64-macos-debug.sh
60 aarch64-macos-release:72 aarch64-macos-release:
...@@ -62,6 +74,8 @@ jobs:...@@ -62,6 +74,8 @@ jobs:
62 steps:74 steps:
63 - name: Checkout75 - name: Checkout
64 uses: actions/checkout@v476 uses: actions/checkout@v4
77 with:
78 fetch-depth: 0
65 - name: Build and Test79 - name: Build and Test
66 run: ci/aarch64-macos-release.sh80 run: ci/aarch64-macos-release.sh
67 x86_64-windows-debug:81 x86_64-windows-debug:
...@@ -70,6 +84,8 @@ jobs:...@@ -70,6 +84,8 @@ jobs:
70 steps:84 steps:
71 - name: Checkout85 - name: Checkout
72 uses: actions/checkout@v486 uses: actions/checkout@v4
87 with:
88 fetch-depth: 0
73 - name: Build and Test89 - name: Build and Test
74 run: ci/x86_64-windows-debug.ps190 run: ci/x86_64-windows-debug.ps1
75 x86_64-windows-release:91 x86_64-windows-release:
...@@ -78,5 +94,7 @@ jobs:...@@ -78,5 +94,7 @@ jobs:
78 steps:94 steps:
79 - name: Checkout95 - name: Checkout
80 uses: actions/checkout@v496 uses: actions/checkout@v4
97 with:
98 fetch-depth: 0
81 - name: Build and Test99 - name: Build and Test
82 run: ci/x86_64-windows-release.ps1100 run: ci/x86_64-windows-release.ps1
ci/aarch64-linux-debug.sh-5
...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# fill up space on the hard drive for no reason.
ci/aarch64-linux-release.sh-5
...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# fill up space on the hard drive for no reason.
ci/aarch64-macos-debug.sh-5
...@@ -21,11 +21,6 @@ fi...@@ -21,11 +21,6 @@ fi
2121
22cd $ZIGDIR22cd $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
29# Override the cache directories because they won't actually help other CI runs24# Override the cache directories because they won't actually help other CI runs
30# which will be testing alternate versions of zig, and ultimately would just25# which will be testing alternate versions of zig, and ultimately would just
31# fill up space on the hard drive for no reason.26# fill up space on the hard drive for no reason.
ci/aarch64-macos-release.sh-5
...@@ -21,11 +21,6 @@ fi...@@ -21,11 +21,6 @@ fi
2121
22cd $ZIGDIR22cd $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
29# Override the cache directories because they won't actually help other CI runs24# Override the cache directories because they won't actually help other CI runs
30# which will be testing alternate versions of zig, and ultimately would just25# which will be testing alternate versions of zig, and ultimately would just
31# fill up space on the hard drive for no reason.26# fill up space on the hard drive for no reason.
ci/aarch64-windows.ps1-8
...@@ -22,14 +22,6 @@ function CheckLastExitCode {...@@ -22,14 +22,6 @@ function CheckLastExitCode {
22 return 022 return 0
23}23}
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
33# Override the cache directories because they won't actually help other CI runs25# Override the cache directories because they won't actually help other CI runs
34# which will be testing alternate versions of zig, and ultimately would just26# which will be testing alternate versions of zig, and ultimately would just
35# fill up space on the hard drive for no reason.27# 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"...@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.157+7fdd60df1"
11PREFIX="$HOME/deps/$CACHE_BASENAME"11PREFIX="$HOME/deps/$CACHE_BASENAME"
12ZIG="$PREFIX/bin/zig"12ZIG="$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
19# Override the cache directories because they won't actually help other CI runs14# Override the cache directories because they won't actually help other CI runs
20# which will be testing alternate versions of zig, and ultimately would just15# which will be testing alternate versions of zig, and ultimately would just
21# fill up space on the hard drive for no reason.16# 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"...@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.157+7fdd60df1"
11PREFIX="$HOME/deps/$CACHE_BASENAME"11PREFIX="$HOME/deps/$CACHE_BASENAME"
12ZIG="$PREFIX/bin/zig"12ZIG="$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
19# Override the cache directories because they won't actually help other CI runs14# Override the cache directories because they won't actually help other CI runs
20# which will be testing alternate versions of zig, and ultimately would just15# which will be testing alternate versions of zig, and ultimately would just
21# fill up space on the hard drive for no reason.16# fill up space on the hard drive for no reason.
ci/riscv64-linux-debug.sh-5
...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# fill up space on the hard drive for no reason.
ci/riscv64-linux-release.sh-5
...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# 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"...@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.312+164c598cd"
11PREFIX="$HOME/deps/$CACHE_BASENAME"11PREFIX="$HOME/deps/$CACHE_BASENAME"
12ZIG="$PREFIX/bin/zig"12ZIG="$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
19# Override the cache directories because they won't actually help other CI runs14# Override the cache directories because they won't actually help other CI runs
20# which will be testing alternate versions of zig, and ultimately would just15# which will be testing alternate versions of zig, and ultimately would just
21# fill up space on the hard drive for no reason.16# 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"...@@ -11,11 +11,6 @@ CACHE_BASENAME="zig+llvm+lld+clang-$TARGET-0.16.0-dev.312+164c598cd"
11PREFIX="$HOME/deps/$CACHE_BASENAME"11PREFIX="$HOME/deps/$CACHE_BASENAME"
12ZIG="$PREFIX/bin/zig"12ZIG="$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
19# Override the cache directories because they won't actually help other CI runs14# Override the cache directories because they won't actually help other CI runs
20# which will be testing alternate versions of zig, and ultimately would just15# which will be testing alternate versions of zig, and ultimately would just
21# fill up space on the hard drive for no reason.16# 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"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# 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"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# 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"...@@ -13,11 +13,6 @@ ZIG="$PREFIX/bin/zig"
1313
14export PATH="$HOME/deps/wasmtime-v29.0.0-x86_64-linux:$HOME/deps/qemu-linux-x86_64-10.1.0/bin:$HOME/local/bin:$PATH"14export 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
21# Override the cache directories because they won't actually help other CI runs16# Override the cache directories because they won't actually help other CI runs
22# which will be testing alternate versions of zig, and ultimately would just17# which will be testing alternate versions of zig, and ultimately would just
23# fill up space on the hard drive for no reason.18# fill up space on the hard drive for no reason.
ci/x86_64-windows-debug.ps1-8
...@@ -22,14 +22,6 @@ function CheckLastExitCode {...@@ -22,14 +22,6 @@ function CheckLastExitCode {
22 return 022 return 0
23}23}
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
33# Override the cache directories because they won't actually help other CI runs25# Override the cache directories because they won't actually help other CI runs
34# which will be testing alternate versions of zig, and ultimately would just26# which will be testing alternate versions of zig, and ultimately would just
35# fill up space on the hard drive for no reason.27# fill up space on the hard drive for no reason.
ci/x86_64-windows-release.ps1-8
...@@ -22,14 +22,6 @@ function CheckLastExitCode {...@@ -22,14 +22,6 @@ function CheckLastExitCode {
22 return 022 return 0
23}23}
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
33# Override the cache directories because they won't actually help other CI runs25# Override the cache directories because they won't actually help other CI runs
34# which will be testing alternate versions of zig, and ultimately would just26# which will be testing alternate versions of zig, and ultimately would just
35# fill up space on the hard drive for no reason.27# fill up space on the hard drive for no reason.