From 21ac089f24d2bf3da499eb867e2229de1c99c750 Mon Sep 17 00:00:00 2001 From: Lleyton Gray Date: Fri, 1 Nov 2024 21:05:25 -0700 Subject: [PATCH] fix: upload WSL add .tar.gz --- .github/workflows/build-katsu.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-katsu.yml b/.github/workflows/build-katsu.yml index cd25fb5..2e8a721 100644 --- a/.github/workflows/build-katsu.yml +++ b/.github/workflows/build-katsu.yml @@ -235,14 +235,21 @@ jobs: tar -cJf katsu-work/chroot.tar katsu-work/chroot mv katsu-work/chroot.tar katsu-work/${{ env.artifact }}.tar # compress tar as zst, output as .tar.zst - zstd -T0 -19 katsu-work/${{ env.artifact }}.tar -o katsu-work/${{ env.artifact }}.tar.zst + # have an exception for WSL, as it doesn't support zstd + if [ "${{ matrix.variant }}" = "wsl/wsl" ]; then + gzip -9 katsu-work/${{ env.artifact }}.tar > katsu-work/${{ env.artifact }}.tar.gz + elif + zstd -T0 -19 katsu-work/${{ env.artifact }}.tar -o katsu-work/${{ env.artifact }}.tar.zst + fi popd - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: ${{ env.artifact }}-tar - path: katsu/katsu-work/*.tar.zst + path: | + katsu/katsu-work/*.tar.zst + katsu/katsu-work/*.tar.gz compression-level: 0 #### LIVE ISO PUSH ####