Skip to content

Commit c287f3d

Browse files
authored
build u-root first, then run it (#1)
Signed-off-by: Daniel Maslowski <[email protected]>
1 parent 876eb18 commit c287f3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
template: [core, boot, all, embedded, minimal]
14+
template: [core, all, embedded, minimal]
1515
arch: [amd64, arm, arm64, riscv64]
1616

1717
runs-on: ubuntu-latest
@@ -26,8 +26,9 @@ jobs:
2626
go-version: '1.20'
2727

2828
- name: Build
29-
run:
30-
GOARCH=${{ matrix.arch }} go run . -uroot-source . -o u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio ${{ matrix.template }}
29+
run: |
30+
go build .
31+
GOARCH=${{ matrix.arch }} ./u-root -uroot-source . -o u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio ${{ matrix.template }}
3132
3233
- name: Upload
3334
uses: actions/[email protected]

0 commit comments

Comments
 (0)