Skip to content

build u-root first, then run it #5

build u-root first, then run it

build u-root first, then run it #5

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 }}
- name: Upload
uses: actions/[email protected]
with:
path: u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio