Skip to content

Create build.yml

Create build.yml #1

Workflow file for this run

name: u-root-builder
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
template: [core, boot, 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:
GOARCH=${{ matrix.arch }} go run . -uroot-source . -o u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio ${{ matrix.template }}
- name: Upload
uses: actions/[email protected]
with:
path: u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio