Skip to content

Commit

Permalink
Copy image from previous release
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jacob-carlborg committed Feb 14, 2024
1 parent eab5197 commit f09907a
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
matrix:
version:
- '12.2'
- '12.4'
- '13.0'
- '13.1'
- '13.2'
Expand All @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit f09907a

Please sign in to comment.