From e950af65c8719d02ab456fb265eb198dd14a00aa Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Tue, 12 Dec 2023 20:17:49 +0100 Subject: [PATCH] build u-root first, then run it Signed-off-by: Daniel Maslowski --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54bd49e..8fb822c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: build: strategy: matrix: - template: [core, boot, all, embedded, minimal] + template: [core, "-initcmd=boot boot", all, embedded, minimal] arch: [amd64, arm, arm64, riscv64] runs-on: ubuntu-latest @@ -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/upload-artifact@v3.1.3