use tar transformation to get the archive zig package manager approved
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 7m40s

This commit is contained in:
Emil Lerch 2023-09-05 13:56:39 -07:00
parent d30d9cf3a9
commit 7637289c3e
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -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