Skip to content

Commit

Permalink
Merge pull request #58 from Ultramarine-Linux/lleyton/fix-wsl
Browse files Browse the repository at this point in the history
fix: upload WSL add .tar.gz
  • Loading branch information
lleyton authored Nov 2, 2024
2 parents 82b2c95 + 901c546 commit cdc979a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-katsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -c katsu-work/${{ env.artifact }}.tar > katsu-work/${{ env.artifact }}.tar.gz
else
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 ####
Expand Down

0 comments on commit cdc979a

Please sign in to comment.