From 5618ecf3fc859d01326f4d449253ccca117a927d Mon Sep 17 00:00:00 2001 From: James Griffin Date: Tue, 26 May 2026 11:03:00 -0300 Subject: [PATCH 1/2] ci: skip validate workflow on ARM64 runners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hassfest and HACS validator actions both depend on amd64-only Docker images (ghcr.io/home-assistant/hassfest, hacs/action). On ARM64 runners — like the Gitea Actions instance hosting this fork — those images pull but fail with "exec format error" because no multi-arch image is published. Validation still runs on GitHub's amd64 ubuntu-latest runners, where it actually matters for HACS distribution. --- .github/workflows/validate.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 2e2cfb2..ce1d3e1 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -16,6 +16,7 @@ jobs: hassfest: name: Hassfest validation runs-on: ubuntu-latest + if: runner.arch != 'ARM64' steps: - uses: actions/checkout@v4 - uses: home-assistant/actions/hassfest@master @@ -23,6 +24,7 @@ jobs: hacs: name: HACS validation runs-on: ubuntu-latest + if: runner.arch != 'ARM64' steps: - uses: actions/checkout@v4 - uses: hacs/action@main From 86d3a45877798f8f027ecbae877470b629a68662 Mon Sep 17 00:00:00 2001 From: James Griffin Date: Tue, 26 May 2026 11:06:23 -0300 Subject: [PATCH 2/2] ci: gate validate jobs on github.server_url instead of runner.arch The runner.arch context isn't populated for job-level if conditions on Gitea Actions, so the previous guard didn't skip on ARM64 Gitea runners. Switch to checking github.server_url, which is reliably 'https://github.com' on GitHub-hosted runs and the Gitea host everywhere else. --- .github/workflows/validate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index ce1d3e1..362601e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -16,7 +16,7 @@ jobs: hassfest: name: Hassfest validation runs-on: ubuntu-latest - if: runner.arch != 'ARM64' + if: github.server_url == 'https://github.com' steps: - uses: actions/checkout@v4 - uses: home-assistant/actions/hassfest@master @@ -24,7 +24,7 @@ jobs: hacs: name: HACS validation runs-on: ubuntu-latest - if: runner.arch != 'ARM64' + if: github.server_url == 'https://github.com' steps: - uses: actions/checkout@v4 - uses: hacs/action@main