From f09907a6a503b1af383d3b6d0358b6be1441d946 Mon Sep 17 00:00:00 2001 From: Jacob Carlborg Date: Wed, 14 Feb 2024 11:31:20 +0100 Subject: [PATCH] Copy image from previous release For some versions and architectures, which are not supported anymore, upstream has shutdown the pkg site. For some of these architectures there is no pkg files on the install media to bootstrap from. This also means now that it's not possible to rebuild these images, without removing these packages. We do this to avoid breaking our users. --- .github/workflows/build.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66c8cf1..84a4e10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,6 @@ jobs: matrix: version: - '12.2' - - '12.4' - '13.0' - '13.1' - '13.2' @@ -37,6 +36,18 @@ jobs: name: arm64 qemu: aarch64 + include: + - version: '12.4' + copy_from_previous_release: true + architecture: + name: arm64 + qemu: aarch64 + + - version: '12.4' + architecture: + name: x86-64 + qemu: x86 + steps: - name: Clone Repository uses: actions/checkout@v3 @@ -63,12 +74,22 @@ jobs: run: cp "$(cat /usr/share/qemu/firmware/60-edk2-aarch64.json | jq .mapping.executable.filename -r)" edk2-aarch64-code.fd - name: Build Image + if: '!matrix.copy_from_previous_release' env: PACKER_LOG: 1 run: | ./build.sh '${{ matrix.version }}' '${{ matrix.architecture.name }}' \ -var 'headless=true' + - name: Copy from previous release + if: matrix.copy_from_previous_release + run: | + curl -O -L \ + --retry 3 \ + --create-dirs \ + --output-dir output \ + https://github.com/cross-platform-actions/freebsd-builder/releases/download/v0.5.0/freebsd-${{ matrix.version }}-${{ matrix.architecture.name }}.qcow2 + - name: Extract Version id: version if: startsWith(github.ref, 'refs/tags/v')