From e1fc7a808d646080c80e2397d7eef6bfa6497049 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Tue, 27 Feb 2024 17:55:16 +0100 Subject: [PATCH] .github: Build PXE image as additional VM image format The PXE image and its helper script is a very handy way to test an image because it does not preserve state. One can boot the same file over and over again without having to reset the image. One can also easily pass in additional kernel cmdline options without having to set up grub.cfg. --- .github/workflows/ci.yaml | 8 +++++--- .github/workflows/pr-comment-build-dispatcher.yaml | 2 +- .github/workflows/pr-workflows.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94cb80bb25..b9445865bc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,7 @@ on: description: | Space-separated vendor formats to build. required: true - default: qemu_uefi + default: qemu_uefi pxe custom_sdk_version: type: string required: false @@ -21,7 +21,7 @@ on: description: | Space-separated vendor formats to build. required: true - default: qemu_uefi + default: qemu_uefi pxe custom_sdk_version: type: string required: false @@ -96,7 +96,7 @@ jobs: arch="${{ matrix.arch }}" echo "arch=${arch}" >> $GITHUB_ENV - IMAGE_FORMATS="qemu_uefi" + IMAGE_FORMATS="qemu_uefi pxe" [ -z "${{ inputs.image_formats }}" ] || IMAGE_FORMATS="${{ inputs.image_formats }}" echo "IMAGE_FORMATS=${IMAGE_FORMATS}" >> $GITHUB_ENV @@ -309,6 +309,8 @@ jobs: scripts/artifacts/images/flatcar_production_*_efi_*.fd scripts/artifacts/images/*.txt scripts/artifacts/images/flatcar_production_*.sh + scripts/artifacts/images/flatcar_production_pxe_image.cpio.gz + scripts/artifacts/images/flatcar_production_pxe.vmlinuz test: needs: packages diff --git a/.github/workflows/pr-comment-build-dispatcher.yaml b/.github/workflows/pr-comment-build-dispatcher.yaml index 4110d351bd..caa80c21d3 100644 --- a/.github/workflows/pr-comment-build-dispatcher.yaml +++ b/.github/workflows/pr-comment-build-dispatcher.yaml @@ -77,4 +77,4 @@ jobs: uses: ./.github/workflows/ci.yaml with: custom_sdk_version: ${{ needs.update_sdk.outputs.sdk_version }} - image_formats: qemu_uefi + image_formats: qemu_uefi pxe diff --git a/.github/workflows/pr-workflows.yaml b/.github/workflows/pr-workflows.yaml index b83f178183..54d799b0db 100644 --- a/.github/workflows/pr-workflows.yaml +++ b/.github/workflows/pr-workflows.yaml @@ -46,4 +46,4 @@ jobs: uses: ./.github/workflows/ci.yaml with: custom_sdk_version: ${{ needs.update_sdk.outputs.sdk_version }} - image_formats: qemu_uefi + image_formats: qemu_uefi pxe