From 632beb8da1fc2bcb295bdc1bda1f616f20f42250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kr=C3=B3l?= Date: Mon, 25 Nov 2024 16:58:54 +0100 Subject: [PATCH] .github/workflows/build.yml: improve qemu artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Piotr Król --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5854723..62c1231 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -117,14 +117,17 @@ jobs: cp configs/config.${{ matrix.vendor }}_${{ matrix.model }}_${{ matrix.payload }} .config make olddefconfig make BUILD_TIMELESS=1 - - name: Search for coreboot.rom + - name: Rename and generate SHA256 run: | - find $GITHUB_WORKSPACE/coreboot -name coreboot.rom + VERSION=$(echo ${GITHUB_REF#refs/heads/rel_} | tr '/' '_') + mv $GITHUB_WORKSPACE/coreboot/build/coreboot.rom $GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom + sha256sum $GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom > $GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom.sha256 - name: Save artifacts uses: actions/upload-artifact@v4 with: - name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.payload }}" + name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.payload }}_${VERSION}" path: | - coreboot/build/coreboot.rom + coreboot/build/qemu_q35_${VERSION}.rom + coreboot/build/qemu_q35_${VERSION}.rom.sha256 retention-days: 30