Skip to content
Draft

zstd #147

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ jobs:
if: ${{ ! startsWith(matrix.name, 'rubik') }}
run: |
sudo mv ${{ steps.install_deps.outputs.image }} photonvision_${{ matrix.name }}.img
sudo xz -T 0 -v photonvision_${{ matrix.name }}.img
echo "artifact=photonvision_${{ matrix.name }}.img.xz" >> "$GITHUB_ENV"
sudo zstd -10 -v photonvision_${{ matrix.name }}.img
echo "artifact=photonvision_${{ matrix.name }}.img.zst" >> "$GITHUB_ENV"

- name: Tar built image
# Build the RubikPi3-specific tar file
Expand All @@ -138,12 +138,12 @@ jobs:
sudo find ${tardir} -mindepth 1 -type d -empty -delete
echo "Contents of tardir: ${tardir}"
ls -la ${tardir}
sudo tar -I 'xz -T0' --create --file=${target}.tar.xz ${tardir} --checkpoint=10000 --checkpoint-action=echo='%T'
sudo tar -I 'zstd -10' --create --file=${target}.tar.zst ${tardir} --checkpoint=10000 --checkpoint-action=echo='%T'
echo "Contents of tar file:"
# Expenive operation (has to unzip the file), only use for debugging
# echo "Contents of tar file:"
# tar --list --file=${target}.tar.xz
echo "artifact=${target}.tar.xz" >> "$GITHUB_ENV"
# tar --list --file=${target}.tar.zst
echo "artifact=${target}.tar.zst" >> "$GITHUB_ENV"

- uses: actions/upload-artifact@v7
with:
Expand All @@ -167,5 +167,5 @@ jobs:
tag: 'Dev'
rm: true
files: |
**/*.xz
**/*.zst
if: github.event_name == 'push'