Skip to content

Commit

Permalink
fixup! fixup! .github/workflows/gen-images: add aarch64* live isos
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Dec 27, 2024
1 parent d7b9d88 commit 1ffd288
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/gen-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
default: "base xfce"
required: false
type: string
live_arm_platforms:
description: "Platforms to include support for in aarch64 live ISOs"
default: "pinebookpro x13s"
required: false
type: string
rootfs_flag:
description: "Build ROOTFSes"
default: true
Expand Down Expand Up @@ -71,6 +76,9 @@ jobs:
mirror: ${{ steps.prep.outputs.mirror }}
live_archs: ${{ steps.prep.outputs.live_archs }}
live_flavors: ${{ steps.prep.outputs.live_flavors }}
rootfs: ${{ steps.prep.outputs.rootfs }}
platformfs: ${{ steps.prep.outputs.platformfs }}
sbc_imgs: ${{ steps.prep.outputs.sbc_imgs }}

steps:
- name: Prepare Environment
Expand All @@ -83,12 +91,18 @@ jobs:
fi
echo "revision=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
echo "mirror=https://repo-ci.voidlinux.org/current" >> $GITHUB_OUTPUT
jsonify() {
sed 's/\s\+/ /g' | jq -Rrc 'split(" ")'
}
echo "live_archs=$(echo "${{ inputs.live_archs }}" | jsonify)" >> $GITHUB_OUTPUT
echo "live_flavors=$(echo "${{ inputs.live_flavors }}" | jsonify)" >> $GITHUB_OUTPUT
echo "rootfs=$(echo "${{ inputs.rootfs }}" | jsonify)" >> $GITHUB_OUTPUT
echo "platformfs=$(echo "${{ inputs.platformfs }}" | jsonify)" >> $GITHUB_OUTPUT
echo "sbc_imgs=$(echo "${{ inputs.sbc_imgs }}" | jsonify)" >> $GITHUB_OUTPUT
build-live-isos:
name: Build Live ISOs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -128,6 +142,7 @@ jobs:
SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \
DATECODE="${{ needs.prepare.outputs.datecode }}" \
LIVE_ARCHS="${{ matrix.arch }}" LIVE_FLAVORS="${{ matrix.flavor }}"
LIVE_PLATFORMS="${{ inputs.live_arm_platforms }}"
- name: Prepare artifacts for upload
run: |
Expand All @@ -146,6 +161,10 @@ jobs:
needs: prepare
if: ${{ inputs.rootfs_flag }}

strategy:
matrix:
arch: ${{ fromJson(needs.prepare.outputs.rootfs) }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
options: --privileged
Expand Down Expand Up @@ -173,15 +192,15 @@ jobs:
make rootfs-all-print rootfs-all \
SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \
DATECODE="${{ needs.prepare.outputs.datecode }}" \
ARCHS="${{ inputs.rootfs }}"
ARCHS="${{ matrix.arch }}"
- name: Prepare artifacts for upload
run: |
make dist DATECODE="${{ needs.prepare.outputs.datecode }}"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: void-rootfs-${{ needs.prepare.outputs.datecode }}
name: void-rootfs-${{ matrix.arch }}-${{ needs.prepare.outputs.datecode }}
path: |
distdir-${{ needs.prepare.outputs.datecode }}/*
if-no-files-found: error
Expand All @@ -192,6 +211,10 @@ jobs:
needs: prepare
if: ${{ inputs.platformfs_flag }}

strategy:
matrix:
platform: ${{ fromJson(needs.prepare.outputs.platformfs) }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
options: --privileged
Expand Down Expand Up @@ -219,15 +242,15 @@ jobs:
make platformfs-all-print platformfs-all \
SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \
DATECODE="${{ needs.prepare.outputs.datecode }}" \
PLATFORMS="${{ inputs.platformfs }}"
PLATFORMS="${{ matrix.platform }}"
- name: Prepare artifacts for upload
run: |
make dist DATECODE="${{ needs.prepare.outputs.datecode }}"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: void-platformfs-${{ needs.prepare.outputs.datecode }}
name: void-platformfs-${{ matrix.platform }}-${{ needs.prepare.outputs.datecode }}
path: |
distdir-${{ needs.prepare.outputs.datecode }}/*
!distdir-${{ needs.prepare.outputs.datecode }}/*ROOTFS*
Expand All @@ -239,6 +262,10 @@ jobs:
needs: prepare
if: ${{ inputs.sbc_img_flag }}

strategy:
matrix:
platform: ${{ fromJson(needs.prepare.outputs.sbc_imgs) }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
options: --privileged
Expand Down Expand Up @@ -266,15 +293,15 @@ jobs:
make images-all-sbc-print images-all-sbc \
SUDO= REPOSITORY="${{ needs.prepare.outputs.mirror }}" \
DATECODE="${{ needs.prepare.outputs.datecode }}" \
SBC_IMGS="${{ inputs.sbc_imgs }}"
SBC_IMGS="${{ matrix.platform }}"
- name: Prepare artifacts for upload
run: |
make dist DATECODE="${{ needs.prepare.outputs.datecode }}"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: void-sbc-img-${{ needs.prepare.outputs.datecode }}
name: void-sbc-img-${{ matrix.platform }}-${{ needs.prepare.outputs.datecode }}
path: |
distdir-${{ needs.prepare.outputs.datecode }}/*
!distdir-${{ needs.prepare.outputs.datecode }}/*ROOTFS*
Expand Down

0 comments on commit 1ffd288

Please sign in to comment.