-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 932 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: u-root-buildcheck
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Cancel running workflows on new push to a PR.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
template: ["core", "boot core", "world", "cpu"]
arch: [amd64, arm, arm64, riscv64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build
run: |
go install github.com/u-root/mkuimage/cmd/mkuimage@latest
go install github.com/hugelgupf/vmtest/tools/runvmtest@latest
GOARCH=${{ matrix.arch }} mkuimage -config=default \
${{ matrix.template }}
runvmtest -- bash -c "cp \$VMTEST_KERNEL ./kernel-x86_64"