Skip to content

publish for tags, compress cpio images #7

publish for tags, compress cpio images

publish for tags, compress cpio images #7

Workflow file for this run

name: u-root-builder
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
template: [core, all, embedded, minimal]
arch: [amd64, arm, arm64, riscv64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: u-root/u-root
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: |
go build .
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.xz