From d3ec5e5b999d7eaf884eb402c510382e98f8ad87 Mon Sep 17 00:00:00 2001 From: Ronald Minnich Date: Tue, 9 Apr 2024 20:56:37 +0000 Subject: [PATCH] publish.yml: add a rule to get and publish kernel artifact Signed-off-by: Ronald Minnich --- .github/workflows/publish.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 08ae3d9..675dec9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,6 +24,7 @@ jobs: - 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 \ -o ${{ matrix.arch }}-${{ matrix.template }}.cpio \ ${{ matrix.template }} @@ -31,6 +32,7 @@ jobs: --stdout ${{ matrix.arch }}-${{ matrix.template }}.cpio | \ dd conv=sync bs=512 \ of=${{ matrix.arch }}-${{ matrix.template }}.cpio.xz + runvmtest -- bash -c "cp \$VMTEST_KERNEL ./kernel-x86_64" - name: Upload uses: svenstaro/upload-release-action@v2 @@ -39,3 +41,11 @@ jobs: tag: ${{ github.ref }} file: ${{ matrix.arch }}-${{ matrix.template }}.cpio.xz asset_name: u-root_${{ matrix.arch }}_${{ matrix.template }}.cpio.xz + + - name: Upload_kernels + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref }} + file: kernel-x86_64 + asset_name: kernel-x86_64