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')