Skip to content

Commit

Permalink
fixup! fixup! fixup! .github/workflows/gen-images.yml: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Feb 16, 2024
1 parent 14edabd commit 130ab3b
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/gen-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
default: "https://repo-ci.voidlinux.org/current"
required: false
type: string
live_iso_flag:
description: "Build live ISOs"
default: true
required: true
type: boolean
live_archs:
description: "Archs to build live ISOs for"
default: "x86_64 x86_64-musl i686"
Expand All @@ -22,16 +27,31 @@ on:
default: "base xfce"
required: false
type: string
rootfs_flag:
description: "Build ROOTFSes"
default: true
required: true
type: boolean
rootfs:
description: "Archs to build ROOTFSes for"
default: "x86_64 x86_64-musl i686 armv6l armv6l-musl armv7l armv7l-musl aarch64 aarch64-musl"
required: false
type: string
platformfs_flag:
description: "Build PLATFORMFSes"
default: true
required: true
type: boolean
platformfs:
description: "Platforms to build PLATFORMFSes for"
default: "rpi-armv6l rpi-armv6l-musl rpi-armv7l rpi-armv7l-musl rpi-aarch64 rpi-aarch64-musl"
required: false
type: string
sbc_img_flag:
description: "Build SBC Images"
default: true
required: true
type: boolean
sbc_imgs:
description: "Platforms to build SBC images for"
default: "rpi-armv6l rpi-armv6l-musl rpi-armv7l rpi-armv7l-musl rpi-aarch64 rpi-aarch64-musl"
Expand Down Expand Up @@ -69,7 +89,7 @@ jobs:
name: Build Live ISOs
runs-on: ubuntu-latest
needs: prepare
if: ${{ inputs.live_archs != '' && inputs.live_flavors != '' }}
if: ${{ inputs.live_iso_flag }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
Expand Down Expand Up @@ -118,7 +138,7 @@ jobs:
name: Build ROOTFSes
runs-on: ubuntu-latest
needs: prepare
if: ${{ inputs.rootfs != '' }}
if: ${{ inputs.rootfs_flag }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
Expand Down Expand Up @@ -167,7 +187,7 @@ jobs:
name: Build PLATFORMFSes
runs-on: ubuntu-latest
needs: prepare
if: ${{ inputs.platformfs != '' }}
if: ${{ inputs.platformfs_flag }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
Expand Down Expand Up @@ -217,7 +237,7 @@ jobs:
name: Build SBC Images
runs-on: ubuntu-latest
needs: prepare
if: ${{ inputs.sbc_imgs != '' }}
if: ${{ inputs.sbc_img_flag }}

container:
image: 'ghcr.io/void-linux/void-glibc-full:20231230R1'
Expand Down

0 comments on commit 130ab3b

Please sign in to comment.