Skip to content

Commit

Permalink
compress u-root images
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Dec 12, 2023
1 parent c287f3d commit 5ae9aa6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ jobs:
- name: Build
run: |
go build .
GOARCH=${{ matrix.arch }} ./u-root -uroot-source . -o u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio ${{ matrix.template }}
GOARCH=${{ matrix.arch }} ./u-root -uroot-source . \
-o u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio \
${{ matrix.template }}
xz --check=crc32 -9 --lzma2=dict=1MiB \
--stdout u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio | \
dd conv=sync bs=512 \
of=u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio.xz
- name: Upload
uses: actions/[email protected]
with:
path: u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio
path: u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio.xz

0 comments on commit 5ae9aa6

Please sign in to comment.