Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms authored Dec 12, 2023
1 parent ce56018 commit 876eb18
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

0 comments on commit 876eb18

Please sign in to comment.