From 672c43e52f6883da2325ced6bbb049cde27d89a2 Mon Sep 17 00:00:00 2001 From: Din Music Date: Fri, 19 Apr 2024 14:24:47 +0000 Subject: [PATCH 1/2] github/workflows: Enable image builds on arm64 Signed-off-by: Din Music --- .github/workflows/image-almalinux.yml | 17 +++++++++++++---- .github/workflows/image-alt.yml | 17 +++++++++++++---- .github/workflows/image-amazonlinux.yml | 18 ++++++++++++++---- .github/workflows/image-archlinux.yml | 16 ++++++++++++---- .github/workflows/image-busybox.yml | 17 +++++++++++++---- .github/workflows/image-centos.yml | 18 ++++++++++++++---- .github/workflows/image-debian.yml | 17 +++++++++++++---- .github/workflows/image-devuan.yml | 17 +++++++++++++---- .github/workflows/image-fedora.yml | 17 +++++++++++++---- .github/workflows/image-funtoo.yml | 17 +++++++++++++---- .github/workflows/image-gentoo.yml | 17 +++++++++++++---- .github/workflows/image-kali.yml | 17 +++++++++++++---- .github/workflows/image-mint.yml | 3 +-- .github/workflows/image-nixos.yml | 17 +++++++++++++---- .github/workflows/image-openeuler.yml | 17 +++++++++++++---- .github/workflows/image-opensuse.yml | 16 ++++++++++++---- .github/workflows/image-openwrt.yml | 17 +++++++++++++---- .github/workflows/image-oracle.yml | 18 ++++++++++++++---- .github/workflows/image-rockylinux.yml | 17 +++++++++++++---- .github/workflows/image-slackware.yml | 3 +-- .github/workflows/image-ubuntu.yml | 3 +-- .github/workflows/image-voidlinux.yml | 17 +++++++++++++---- 22 files changed, 251 insertions(+), 82 deletions(-) diff --git a/.github/workflows/image-almalinux.yml b/.github/workflows/image-almalinux.yml index ee59021bf..0bda085e0 100644 --- a/.github/workflows/image-almalinux.yml +++ b/.github/workflows/image-almalinux.yml @@ -2,18 +2,22 @@ name: Build AlmaLinux Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: almalinux: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -25,7 +29,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-alt.yml b/.github/workflows/image-alt.yml index 2e764f9df..bf5270fb9 100644 --- a/.github/workflows/image-alt.yml +++ b/.github/workflows/image-alt.yml @@ -2,18 +2,22 @@ name: Build ALT Linux Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: alt: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -26,7 +30,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-amazonlinux.yml b/.github/workflows/image-amazonlinux.yml index b7318ef22..70c3886cd 100644 --- a/.github/workflows/image-amazonlinux.yml +++ b/.github/workflows/image-amazonlinux.yml @@ -2,18 +2,22 @@ name: Build AmazonLinux Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: amazonlinux: - runs-on: ubuntu-20.04 + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-20.04' }} strategy: fail-fast: false matrix: @@ -24,7 +28,13 @@ jobs: - default architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} + - {architecture: arm64, release: 2} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-archlinux.yml b/.github/workflows/image-archlinux.yml index 66acded8e..e5cab4ef1 100644 --- a/.github/workflows/image-archlinux.yml +++ b/.github/workflows/image-archlinux.yml @@ -2,18 +2,22 @@ name: Build ArchLinux Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: archlinux: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -25,8 +29,12 @@ jobs: - desktop-gnome architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} - {architecture: arm64, variant: cloud} - {architecture: arm64, variant: desktop-gnome} env: diff --git a/.github/workflows/image-busybox.yml b/.github/workflows/image-busybox.yml index e86275a0d..5caf31028 100644 --- a/.github/workflows/image-busybox.yml +++ b/.github/workflows/image-busybox.yml @@ -2,18 +2,22 @@ name: Build BusyBox Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: busybox: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -23,7 +27,12 @@ jobs: - default architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-centos.yml b/.github/workflows/image-centos.yml index 7fc560eb5..a31f0d84d 100644 --- a/.github/workflows/image-centos.yml +++ b/.github/workflows/image-centos.yml @@ -2,18 +2,22 @@ name: Build CentOS Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: centos: - runs-on: ubuntu-20.04 + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-20.04' }} strategy: fail-fast: false matrix: @@ -26,7 +30,13 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} + - {architecture: arm64, release: 7} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-debian.yml b/.github/workflows/image-debian.yml index 4bf9bdbf8..00b6906bd 100644 --- a/.github/workflows/image-debian.yml +++ b/.github/workflows/image-debian.yml @@ -2,18 +2,22 @@ name: Build Debian Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: debian: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -28,7 +32,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-devuan.yml b/.github/workflows/image-devuan.yml index 4fb4824b8..d4e4db3dd 100644 --- a/.github/workflows/image-devuan.yml +++ b/.github/workflows/image-devuan.yml @@ -2,18 +2,22 @@ name: Build Devuan Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: devuan: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -26,7 +30,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-fedora.yml b/.github/workflows/image-fedora.yml index 5991e1ddb..f2258d3dc 100644 --- a/.github/workflows/image-fedora.yml +++ b/.github/workflows/image-fedora.yml @@ -2,18 +2,22 @@ name: Build Fedora Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: fedora: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -25,7 +29,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-funtoo.yml b/.github/workflows/image-funtoo.yml index c77939b15..5b3193c80 100644 --- a/.github/workflows/image-funtoo.yml +++ b/.github/workflows/image-funtoo.yml @@ -2,18 +2,22 @@ name: Build Funtoo Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: funtoo: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -23,7 +27,12 @@ jobs: - default architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-gentoo.yml b/.github/workflows/image-gentoo.yml index 6de3a83e8..7e0460be1 100644 --- a/.github/workflows/image-gentoo.yml +++ b/.github/workflows/image-gentoo.yml @@ -2,18 +2,22 @@ name: Build Gentoo Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: gentoo: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -24,7 +28,12 @@ jobs: - systemd architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-kali.yml b/.github/workflows/image-kali.yml index 673c737f6..b6529d214 100644 --- a/.github/workflows/image-kali.yml +++ b/.github/workflows/image-kali.yml @@ -2,18 +2,22 @@ name: Build Kali Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: kali: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -24,7 +28,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-mint.yml b/.github/workflows/image-mint.yml index cc7ca6131..f51d6802b 100644 --- a/.github/workflows/image-mint.yml +++ b/.github/workflows/image-mint.yml @@ -2,8 +2,7 @@ name: Build Linux Mint Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). workflow_dispatch: inputs: publish: diff --git a/.github/workflows/image-nixos.yml b/.github/workflows/image-nixos.yml index 932c07daa..945cf126e 100644 --- a/.github/workflows/image-nixos.yml +++ b/.github/workflows/image-nixos.yml @@ -2,18 +2,22 @@ name: Build NixOS Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: nixos: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -24,7 +28,12 @@ jobs: - default architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-openeuler.yml b/.github/workflows/image-openeuler.yml index 4d81a606d..b556ea67c 100644 --- a/.github/workflows/image-openeuler.yml +++ b/.github/workflows/image-openeuler.yml @@ -2,18 +2,22 @@ name: Build openEuler Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: openeuler: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -26,7 +30,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-opensuse.yml b/.github/workflows/image-opensuse.yml index d94fa9cbb..750c65506 100644 --- a/.github/workflows/image-opensuse.yml +++ b/.github/workflows/image-opensuse.yml @@ -2,18 +2,22 @@ name: Build OpenSUSE Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: opensuse: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -26,8 +30,12 @@ jobs: - desktop-kde architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} - {architecture: arm64, variant: desktop-kde} - {release: 15.5, variant: cloud} env: diff --git a/.github/workflows/image-openwrt.yml b/.github/workflows/image-openwrt.yml index fe6e01ab6..6d6267764 100644 --- a/.github/workflows/image-openwrt.yml +++ b/.github/workflows/image-openwrt.yml @@ -2,18 +2,22 @@ name: Build OpenWRT Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: openwrt: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -25,7 +29,12 @@ jobs: - default architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-oracle.yml b/.github/workflows/image-oracle.yml index aff30b97a..909c7ce0d 100644 --- a/.github/workflows/image-oracle.yml +++ b/.github/workflows/image-oracle.yml @@ -2,18 +2,22 @@ name: Build Oracle Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: oracle: - runs-on: ubuntu-20.04 + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-20.04' }} strategy: fail-fast: false matrix: @@ -26,7 +30,13 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} + - {architecture: arm64, release: 7} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-rockylinux.yml b/.github/workflows/image-rockylinux.yml index fc61a72fc..cd5945f25 100644 --- a/.github/workflows/image-rockylinux.yml +++ b/.github/workflows/image-rockylinux.yml @@ -2,18 +2,22 @@ name: Build RockyLinux Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: rockylinux: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -25,7 +29,12 @@ jobs: - cloud architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" diff --git a/.github/workflows/image-slackware.yml b/.github/workflows/image-slackware.yml index e4f6bc9c1..c7919c53f 100644 --- a/.github/workflows/image-slackware.yml +++ b/.github/workflows/image-slackware.yml @@ -2,8 +2,7 @@ name: Build Slackware Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). workflow_dispatch: inputs: publish: diff --git a/.github/workflows/image-ubuntu.yml b/.github/workflows/image-ubuntu.yml index c5956c2a2..3b8650ea5 100644 --- a/.github/workflows/image-ubuntu.yml +++ b/.github/workflows/image-ubuntu.yml @@ -2,8 +2,7 @@ name: Build Ubuntu Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). workflow_dispatch: inputs: publish: diff --git a/.github/workflows/image-voidlinux.yml b/.github/workflows/image-voidlinux.yml index bf718df2c..e628d5c6c 100644 --- a/.github/workflows/image-voidlinux.yml +++ b/.github/workflows/image-voidlinux.yml @@ -2,18 +2,22 @@ name: Build VoidLinux Images on: schedule: - # Run at 00:00 UTC daily. - - cron: '0 0 * * *' + - cron: '0 0 * * *' # Build amd64 (Daily at 00:00 UTC). + - cron: '0 0 * * 1' # Build arm64 (Weekly on Monday at 00:00 UTC). workflow_dispatch: inputs: publish: type: boolean default: false description: Publish built image + build-arm64: + type: boolean + default: false + description: Build arm64 images jobs: voidlinux: - runs-on: ubuntu-latest + runs-on: ${{ matrix.architecture == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-latest' }} strategy: fail-fast: false matrix: @@ -24,7 +28,12 @@ jobs: - default architecture: - amd64 - # - arm64 + - arm64 + build_arm64: + - ${{ inputs.build-arm64 == true || github.event.schedule == '0 0 * * 1' }} + exclude: + - {architecture: amd64, build_arm64: true} + - {architecture: arm64, build_arm64: false} env: type: "container" distro: "${{ github.job }}" From b8a0d725e5cd7708b4c09ef93b3d17a27362dfbd Mon Sep 17 00:00:00 2001 From: Din Music Date: Fri, 19 Apr 2024 14:26:40 +0000 Subject: [PATCH 2/2] github/workflows: Disable arm64 VM build Debian, Fedora, openSUSE, Ubuntu, and AlpineLinux (was already disabled). Separate commit, so that we can easily find which images supported VMs. Signed-off-by: Din Music --- .github/workflows/image-debian.yml | 2 +- .github/workflows/image-fedora.yml | 2 +- .github/workflows/image-opensuse.yml | 2 +- .github/workflows/image-ubuntu.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/image-debian.yml b/.github/workflows/image-debian.yml index 00b6906bd..9175c63b2 100644 --- a/.github/workflows/image-debian.yml +++ b/.github/workflows/image-debian.yml @@ -52,7 +52,7 @@ jobs: - name: Determine image types run: | ARCH="${{ matrix.architecture }}" - if [ "${ARCH}" = "amd64" ] || [ "${ARCH}" = "arm64" ]; then + if [ "${ARCH}" = "amd64" ]; then echo "type=container,vm" >> $GITHUB_ENV fi diff --git a/.github/workflows/image-fedora.yml b/.github/workflows/image-fedora.yml index f2258d3dc..4df7e36b2 100644 --- a/.github/workflows/image-fedora.yml +++ b/.github/workflows/image-fedora.yml @@ -49,7 +49,7 @@ jobs: - name: Determine image types run: | ARCH="${{ matrix.architecture }}" - if [ "${ARCH}" = "amd64" ] || [ "${ARCH}" = "arm64" ]; then + if [ "${ARCH}" = "amd64" ]; then echo "type=container,vm" >> $GITHUB_ENV fi diff --git a/.github/workflows/image-opensuse.yml b/.github/workflows/image-opensuse.yml index 750c65506..f3a6df7f9 100644 --- a/.github/workflows/image-opensuse.yml +++ b/.github/workflows/image-opensuse.yml @@ -52,7 +52,7 @@ jobs: - name: Determine image types run: | ARCH="${{ matrix.architecture }}" - if [ "${ARCH}" = "amd64" ] || [ "${ARCH}" = "arm64" ]; then + if [ "${ARCH}" = "amd64" ]; then echo "type=container,vm" >> $GITHUB_ENV fi diff --git a/.github/workflows/image-ubuntu.yml b/.github/workflows/image-ubuntu.yml index 3b8650ea5..36985241f 100644 --- a/.github/workflows/image-ubuntu.yml +++ b/.github/workflows/image-ubuntu.yml @@ -49,7 +49,7 @@ jobs: - name: Determine image types run: | ARCH="${{ matrix.architecture }}" - if [ "${ARCH}" = "amd64" ] || [ "${ARCH}" = "arm64" ]; then + if [ "${ARCH}" = "amd64" ]; then echo "type=container,vm" >> $GITHUB_ENV fi