From 7637289c3ec217ae8c8a4c483c3e59ce98f5658a Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 5 Sep 2023 13:56:39 -0700 Subject: [PATCH] use tar transformation to get the archive zig package manager approved --- .gitea/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 671931e..9524fbe 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -32,7 +32,10 @@ jobs: - run: zig build -Dtarget=riscv64-linux - run: zig build -Dtarget=x86_64-macos - run: zig build -Dtarget=aarch64-macos - - run: tar -czf ${{ runner.temp }}/${{ github.sha }}-with-models.tar.gz --exclude 'zig-*' * + # Zig package manager expects everything to be inside a directory in the archive, + # which it then strips out on download. So we need to shove everything inside a directory + # the way GitHub/Gitea does for repo archives + - run: tar -czf ${{ runner.temp }}/${{ github.sha }}-with-models.tar.gz --exclude 'zig-*' --transform 's,^,${{ github.sha }}/,' * # - name: Sign # id: sign # uses: https://git.lerch.org/lobo/action-hsm-sign@v1