Skip to content

Commit

Permalink
Compress SD image using xz
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Feb 22, 2024
1 parent c341b4e commit 695c6a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/image-builder-from-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install coreutils p7zip-full qemu-user-static
sudo apt install coreutils p7zip-full qemu-user-static xz-utils
- name: Checkout CustomPiOS
uses: actions/checkout@v4
Expand Down Expand Up @@ -100,10 +100,11 @@ jobs:
run: |
IMAGE=SD-card-image-${{ github.event.inputs.tags }}-${{ github.event.inputs.architecture }}
cp ${{ env.workspace_dir }}/*.img $IMAGE.img
xz -v9 $IMAGE.img
echo "image=$IMAGE" >> $GITHUB_OUTPUT
# artifact upload will take care of zipping for us
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.copy.outputs.image }}
path: ${{ steps.copy.outputs.image }}.img
path: ${{ steps.copy.outputs.image }}.img.xz

0 comments on commit 695c6a7

Please sign in to comment.