From 7b85f438aeea70eb6abd36f37fd2a36bd54aed18 Mon Sep 17 00:00:00 2001 From: Justin Neubert Date: Sat, 29 Nov 2025 23:16:16 +0100 Subject: [PATCH 1/2] fix: skip unsupported darwin/386 architecture in build workflows - Updated multiple GitHub workflows to skip building for darwin/386 architecture, which is unsupported. - Adjusted build scripts in both pre-release and release workflows for various plugins to ensure compatibility across platforms. --- ...prerelease-action-plugins-actions_check.yml | 6 +++++- .../prerelease-action-plugins-ansible.yml | 6 +++++- .../prerelease-action-plugins-collect_data.yml | 6 +++++- .../prerelease-action-plugins-debug.yml | 6 +++++- .../prerelease-action-plugins-git.yml | 6 +++++- .../prerelease-action-plugins-interaction.yml | 6 +++++- .../prerelease-action-plugins-log.yml | 6 +++++- .../prerelease-action-plugins-mail.yml | 6 +++++- ...prerelease-action-plugins-pattern_check.yml | 6 +++++- .../prerelease-action-plugins-ping.yml | 6 +++++- .../prerelease-action-plugins-port_checker.yml | 6 +++++- .../prerelease-action-plugins-ssh.yml | 6 +++++- .../prerelease-action-plugins-terraform.yml | 6 +++++- .../prerelease-action-plugins-test.yml | 6 +++++- .../prerelease-action-plugins-wait.yml | 6 +++++- ...rerelease-endpoint-plugins-alertmanager.yml | 6 +++++- .../release-action-plugins-actions_check.yml | 12 ++++++++++-- .../release-action-plugins-ansible.yml | 12 ++++++++++-- .../release-action-plugins-collect_data.yml | 12 ++++++++++-- .../workflows/release-action-plugins-debug.yml | 12 ++++++++++-- .../workflows/release-action-plugins-git.yml | 12 ++++++++++-- .../release-action-plugins-interaction.yml | 12 ++++++++++-- .../workflows/release-action-plugins-log.yml | 12 ++++++++++-- .../workflows/release-action-plugins-mail.yml | 12 ++++++++++-- .../release-action-plugins-pattern_check.yml | 12 ++++++++++-- .../workflows/release-action-plugins-ping.yml | 12 ++++++++++-- .../release-action-plugins-port_checker.yml | 12 ++++++++++-- .../workflows/release-action-plugins-ssh.yml | 12 ++++++++++-- .../release-action-plugins-terraform.yml | 12 ++++++++++-- .../workflows/release-action-plugins-test.yml | 12 ++++++++++-- .../workflows/release-action-plugins-wait.yml | 12 ++++++++++-- .../release-endpoint-plugins-alertmanager.yml | 12 ++++++++++-- generate_workflows.sh | 18 +++++++++++++++--- 33 files changed, 255 insertions(+), 51 deletions(-) diff --git a/.github/workflows/prerelease-action-plugins-actions_check.yml b/.github/workflows/prerelease-action-plugins-actions_check.yml index 90379bc..1997a99 100644 --- a/.github/workflows/prerelease-action-plugins-actions_check.yml +++ b/.github/workflows/prerelease-action-plugins-actions_check.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o actions_check-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-ansible.yml b/.github/workflows/prerelease-action-plugins-ansible.yml index 0101dd0..6731c99 100644 --- a/.github/workflows/prerelease-action-plugins-ansible.yml +++ b/.github/workflows/prerelease-action-plugins-ansible.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ansible-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-collect_data.yml b/.github/workflows/prerelease-action-plugins-collect_data.yml index 5013cd0..ab2cc92 100644 --- a/.github/workflows/prerelease-action-plugins-collect_data.yml +++ b/.github/workflows/prerelease-action-plugins-collect_data.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o collect_data-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-debug.yml b/.github/workflows/prerelease-action-plugins-debug.yml index 0705020..2263c75 100644 --- a/.github/workflows/prerelease-action-plugins-debug.yml +++ b/.github/workflows/prerelease-action-plugins-debug.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o debug-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-git.yml b/.github/workflows/prerelease-action-plugins-git.yml index 2d61b0e..5a43d04 100644 --- a/.github/workflows/prerelease-action-plugins-git.yml +++ b/.github/workflows/prerelease-action-plugins-git.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o git-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-interaction.yml b/.github/workflows/prerelease-action-plugins-interaction.yml index 714ff4c..bef987f 100644 --- a/.github/workflows/prerelease-action-plugins-interaction.yml +++ b/.github/workflows/prerelease-action-plugins-interaction.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o interaction-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-log.yml b/.github/workflows/prerelease-action-plugins-log.yml index 7606887..0447c6b 100644 --- a/.github/workflows/prerelease-action-plugins-log.yml +++ b/.github/workflows/prerelease-action-plugins-log.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o log-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-mail.yml b/.github/workflows/prerelease-action-plugins-mail.yml index 984fe39..2b9ee35 100644 --- a/.github/workflows/prerelease-action-plugins-mail.yml +++ b/.github/workflows/prerelease-action-plugins-mail.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o mail-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-pattern_check.yml b/.github/workflows/prerelease-action-plugins-pattern_check.yml index edefca7..fdc21d3 100644 --- a/.github/workflows/prerelease-action-plugins-pattern_check.yml +++ b/.github/workflows/prerelease-action-plugins-pattern_check.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o pattern_check-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-ping.yml b/.github/workflows/prerelease-action-plugins-ping.yml index bf690e8..7addfcf 100644 --- a/.github/workflows/prerelease-action-plugins-ping.yml +++ b/.github/workflows/prerelease-action-plugins-ping.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ping-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-port_checker.yml b/.github/workflows/prerelease-action-plugins-port_checker.yml index a32ed05..ad04712 100644 --- a/.github/workflows/prerelease-action-plugins-port_checker.yml +++ b/.github/workflows/prerelease-action-plugins-port_checker.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o port_checker-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-ssh.yml b/.github/workflows/prerelease-action-plugins-ssh.yml index be8f598..6bffbc6 100644 --- a/.github/workflows/prerelease-action-plugins-ssh.yml +++ b/.github/workflows/prerelease-action-plugins-ssh.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ssh-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-terraform.yml b/.github/workflows/prerelease-action-plugins-terraform.yml index 56a5d07..f43bdf9 100644 --- a/.github/workflows/prerelease-action-plugins-terraform.yml +++ b/.github/workflows/prerelease-action-plugins-terraform.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o terraform-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-test.yml b/.github/workflows/prerelease-action-plugins-test.yml index b81b1b8..686e98f 100644 --- a/.github/workflows/prerelease-action-plugins-test.yml +++ b/.github/workflows/prerelease-action-plugins-test.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o test-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-action-plugins-wait.yml b/.github/workflows/prerelease-action-plugins-wait.yml index ec81e52..b8b5749 100644 --- a/.github/workflows/prerelease-action-plugins-wait.yml +++ b/.github/workflows/prerelease-action-plugins-wait.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o wait-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml b/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml index 26452e0..822582c 100644 --- a/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml +++ b/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml @@ -70,7 +70,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o alertmanager-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-actions_check.yml b/.github/workflows/release-action-plugins-actions_check.yml index bd929e6..a803b77 100644 --- a/.github/workflows/release-action-plugins-actions_check.yml +++ b/.github/workflows/release-action-plugins-actions_check.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o actions_check-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o actions_check-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-ansible.yml b/.github/workflows/release-action-plugins-ansible.yml index 9170c48..2a0e270 100644 --- a/.github/workflows/release-action-plugins-ansible.yml +++ b/.github/workflows/release-action-plugins-ansible.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ansible-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ansible-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-collect_data.yml b/.github/workflows/release-action-plugins-collect_data.yml index 97f0867..b3baa98 100644 --- a/.github/workflows/release-action-plugins-collect_data.yml +++ b/.github/workflows/release-action-plugins-collect_data.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o collect_data-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o collect_data-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-debug.yml b/.github/workflows/release-action-plugins-debug.yml index ed5e93a..6b893c1 100644 --- a/.github/workflows/release-action-plugins-debug.yml +++ b/.github/workflows/release-action-plugins-debug.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o debug-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o debug-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-git.yml b/.github/workflows/release-action-plugins-git.yml index 3d69e2d..db00878 100644 --- a/.github/workflows/release-action-plugins-git.yml +++ b/.github/workflows/release-action-plugins-git.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o git-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o git-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-interaction.yml b/.github/workflows/release-action-plugins-interaction.yml index f8e9eaf..566360c 100644 --- a/.github/workflows/release-action-plugins-interaction.yml +++ b/.github/workflows/release-action-plugins-interaction.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o interaction-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o interaction-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-log.yml b/.github/workflows/release-action-plugins-log.yml index 5834472..b3e47ec 100644 --- a/.github/workflows/release-action-plugins-log.yml +++ b/.github/workflows/release-action-plugins-log.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o log-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o log-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-mail.yml b/.github/workflows/release-action-plugins-mail.yml index ac04b01..c2f3393 100644 --- a/.github/workflows/release-action-plugins-mail.yml +++ b/.github/workflows/release-action-plugins-mail.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o mail-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o mail-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-pattern_check.yml b/.github/workflows/release-action-plugins-pattern_check.yml index f81466d..1f1182e 100644 --- a/.github/workflows/release-action-plugins-pattern_check.yml +++ b/.github/workflows/release-action-plugins-pattern_check.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o pattern_check-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o pattern_check-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-ping.yml b/.github/workflows/release-action-plugins-ping.yml index 1b96a4e..b0b70b2 100644 --- a/.github/workflows/release-action-plugins-ping.yml +++ b/.github/workflows/release-action-plugins-ping.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ping-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ping-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-port_checker.yml b/.github/workflows/release-action-plugins-port_checker.yml index 7fbe66b..aa0b953 100644 --- a/.github/workflows/release-action-plugins-port_checker.yml +++ b/.github/workflows/release-action-plugins-port_checker.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o port_checker-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o port_checker-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-ssh.yml b/.github/workflows/release-action-plugins-ssh.yml index d6d3e2e..8152d83 100644 --- a/.github/workflows/release-action-plugins-ssh.yml +++ b/.github/workflows/release-action-plugins-ssh.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ssh-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o ssh-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-terraform.yml b/.github/workflows/release-action-plugins-terraform.yml index 2bae24a..25c2703 100644 --- a/.github/workflows/release-action-plugins-terraform.yml +++ b/.github/workflows/release-action-plugins-terraform.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o terraform-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o terraform-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-test.yml b/.github/workflows/release-action-plugins-test.yml index 3deb276..dec5ec3 100644 --- a/.github/workflows/release-action-plugins-test.yml +++ b/.github/workflows/release-action-plugins-test.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o test-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o test-latest-${os}-${arch} done done diff --git a/.github/workflows/release-action-plugins-wait.yml b/.github/workflows/release-action-plugins-wait.yml index 7d16b1b..8303343 100644 --- a/.github/workflows/release-action-plugins-wait.yml +++ b/.github/workflows/release-action-plugins-wait.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o wait-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o wait-latest-${os}-${arch} done done diff --git a/.github/workflows/release-endpoint-plugins-alertmanager.yml b/.github/workflows/release-endpoint-plugins-alertmanager.yml index d827735..d35044c 100644 --- a/.github/workflows/release-endpoint-plugins-alertmanager.yml +++ b/.github/workflows/release-endpoint-plugins-alertmanager.yml @@ -48,14 +48,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o alertmanager-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o alertmanager-latest-${os}-${arch} done done diff --git a/generate_workflows.sh b/generate_workflows.sh index 236685c..ffcbe96 100755 --- a/generate_workflows.sh +++ b/generate_workflows.sh @@ -121,14 +121,22 @@ jobs: run: | # Build versioned binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o $plugin-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done # Build latest binaries for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o $plugin-latest-${os}-${arch} done done @@ -265,7 +273,11 @@ jobs: run: | # Build for multiple platforms for os in darwin linux; do - for arch in amd64 arm64 386 arm ppc64le s390x; do + for arch in amd64 arm64 arm ppc64le s390x; do + # Skip darwin/386 as it's unsupported + if [ "$os" = "darwin" ] && [ "$arch" = "386" ]; then + continue + fi GOOS=${os} GOARCH=${arch} go build -o $plugin-v${{ steps.read_version.outputs.version }}-${os}-${arch} done done From 3c8f5032e67dcfcb96c4f10be3eaff7fda340c47 Mon Sep 17 00:00:00 2001 From: Justin Neubert Date: Sat, 29 Nov 2025 23:17:58 +0100 Subject: [PATCH 2/2] fix: update workflow conditions to allow manual triggering alongside prerelease checks --- .github/workflows/prerelease-action-plugins-actions_check.yml | 2 +- .github/workflows/prerelease-action-plugins-ansible.yml | 2 +- .github/workflows/prerelease-action-plugins-collect_data.yml | 2 +- .github/workflows/prerelease-action-plugins-debug.yml | 2 +- .github/workflows/prerelease-action-plugins-git.yml | 2 +- .github/workflows/prerelease-action-plugins-interaction.yml | 2 +- .github/workflows/prerelease-action-plugins-log.yml | 2 +- .github/workflows/prerelease-action-plugins-mail.yml | 2 +- .github/workflows/prerelease-action-plugins-pattern_check.yml | 2 +- .github/workflows/prerelease-action-plugins-ping.yml | 2 +- .github/workflows/prerelease-action-plugins-port_checker.yml | 2 +- .github/workflows/prerelease-action-plugins-ssh.yml | 2 +- .github/workflows/prerelease-action-plugins-terraform.yml | 2 +- .github/workflows/prerelease-action-plugins-test.yml | 2 +- .github/workflows/prerelease-action-plugins-wait.yml | 2 +- .github/workflows/prerelease-endpoint-plugins-alertmanager.yml | 2 +- generate_workflows.sh | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/prerelease-action-plugins-actions_check.yml b/.github/workflows/prerelease-action-plugins-actions_check.yml index 1997a99..38bcf4f 100644 --- a/.github/workflows/prerelease-action-plugins-actions_check.yml +++ b/.github/workflows/prerelease-action-plugins-actions_check.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release actions_check needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-ansible.yml b/.github/workflows/prerelease-action-plugins-ansible.yml index 6731c99..8f48005 100644 --- a/.github/workflows/prerelease-action-plugins-ansible.yml +++ b/.github/workflows/prerelease-action-plugins-ansible.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release ansible needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-collect_data.yml b/.github/workflows/prerelease-action-plugins-collect_data.yml index ab2cc92..ae90851 100644 --- a/.github/workflows/prerelease-action-plugins-collect_data.yml +++ b/.github/workflows/prerelease-action-plugins-collect_data.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release collect_data needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-debug.yml b/.github/workflows/prerelease-action-plugins-debug.yml index 2263c75..7d19363 100644 --- a/.github/workflows/prerelease-action-plugins-debug.yml +++ b/.github/workflows/prerelease-action-plugins-debug.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release debug needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-git.yml b/.github/workflows/prerelease-action-plugins-git.yml index 5a43d04..4e81a8d 100644 --- a/.github/workflows/prerelease-action-plugins-git.yml +++ b/.github/workflows/prerelease-action-plugins-git.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release git needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-interaction.yml b/.github/workflows/prerelease-action-plugins-interaction.yml index bef987f..1412153 100644 --- a/.github/workflows/prerelease-action-plugins-interaction.yml +++ b/.github/workflows/prerelease-action-plugins-interaction.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release interaction needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-log.yml b/.github/workflows/prerelease-action-plugins-log.yml index 0447c6b..3c2b3ad 100644 --- a/.github/workflows/prerelease-action-plugins-log.yml +++ b/.github/workflows/prerelease-action-plugins-log.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release log needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-mail.yml b/.github/workflows/prerelease-action-plugins-mail.yml index 2b9ee35..2aa6273 100644 --- a/.github/workflows/prerelease-action-plugins-mail.yml +++ b/.github/workflows/prerelease-action-plugins-mail.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release mail needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-pattern_check.yml b/.github/workflows/prerelease-action-plugins-pattern_check.yml index fdc21d3..ac25f12 100644 --- a/.github/workflows/prerelease-action-plugins-pattern_check.yml +++ b/.github/workflows/prerelease-action-plugins-pattern_check.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release pattern_check needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-ping.yml b/.github/workflows/prerelease-action-plugins-ping.yml index 7addfcf..509bfc7 100644 --- a/.github/workflows/prerelease-action-plugins-ping.yml +++ b/.github/workflows/prerelease-action-plugins-ping.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release ping needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-port_checker.yml b/.github/workflows/prerelease-action-plugins-port_checker.yml index ad04712..612ea46 100644 --- a/.github/workflows/prerelease-action-plugins-port_checker.yml +++ b/.github/workflows/prerelease-action-plugins-port_checker.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release port_checker needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-ssh.yml b/.github/workflows/prerelease-action-plugins-ssh.yml index 6bffbc6..37ca0db 100644 --- a/.github/workflows/prerelease-action-plugins-ssh.yml +++ b/.github/workflows/prerelease-action-plugins-ssh.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release ssh needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-terraform.yml b/.github/workflows/prerelease-action-plugins-terraform.yml index f43bdf9..4bf8b9e 100644 --- a/.github/workflows/prerelease-action-plugins-terraform.yml +++ b/.github/workflows/prerelease-action-plugins-terraform.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release terraform needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-test.yml b/.github/workflows/prerelease-action-plugins-test.yml index 686e98f..50f3362 100644 --- a/.github/workflows/prerelease-action-plugins-test.yml +++ b/.github/workflows/prerelease-action-plugins-test.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release test needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-action-plugins-wait.yml b/.github/workflows/prerelease-action-plugins-wait.yml index b8b5749..ce53c00 100644 --- a/.github/workflows/prerelease-action-plugins-wait.yml +++ b/.github/workflows/prerelease-action-plugins-wait.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release wait needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml b/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml index 822582c..094afee 100644 --- a/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml +++ b/.github/workflows/prerelease-endpoint-plugins-alertmanager.yml @@ -32,7 +32,7 @@ jobs: build-and-prerelease: name: Build and Pre-release alertmanager needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/generate_workflows.sh b/generate_workflows.sh index ffcbe96..fa767d2 100755 --- a/generate_workflows.sh +++ b/generate_workflows.sh @@ -235,7 +235,7 @@ jobs: build-and-prerelease: name: Build and Pre-release $plugin needs: check-version - if: needs.check-version.outputs.is_prerelease == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check-version.outputs.is_prerelease == 'true' runs-on: ubuntu-latest permissions: write-all steps: