Skip to content

Commit

Permalink
build u-root first, then run it (#1)
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 876eb18 commit c287f3d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
strategy:
matrix:
template: [core, boot, all, embedded, minimal]
template: [core, all, embedded, minimal]
arch: [amd64, arm, arm64, riscv64]

runs-on: ubuntu-latest
Expand All @@ -26,8 +26,9 @@ jobs:
go-version: '1.20'

- name: Build
run:
GOARCH=${{ matrix.arch }} go run . -uroot-source . -o u-root-${{ matrix.arch }}-${{ matrix.template }}.cpio ${{ matrix.template }}
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]
Expand Down

0 comments on commit c287f3d

Please sign in to comment.