Skip validate workflow on ARM64 runners #3

Merged
thatguygriff merged 2 commits from ci/skip-on-arm into main 2026-05-26 14:06:49 +00:00
Owner

Summary

Both jobs in validate.yml (home-assistant/actions/hassfest@master and hacs/action@main) wrap amd64-only Docker images. On the ARM64 Gitea Actions runner hosting this fork, the images pull successfully but their entrypoints fail with exec format error because no multi-arch image is published.

Guard each job with if: runner.arch != 'ARM64'. GitHub's hosted ubuntu-latest runners are amd64, so the validators still run upstream where they actually matter for HACS distribution. PRs against this Gitea fork will show no CI rather than red CI.

Test plan

  • After merge, push or open a PR and confirm the run shows both jobs as skipped (gray) rather than failed (red) on Gitea.
  • If/when the upstream repo (or any amd64 mirror) picks up the change, confirm both jobs still execute normally.
## Summary Both jobs in `validate.yml` (`home-assistant/actions/hassfest@master` and `hacs/action@main`) wrap amd64-only Docker images. On the ARM64 Gitea Actions runner hosting this fork, the images pull successfully but their entrypoints fail with `exec format error` because no multi-arch image is published. Guard each job with `if: runner.arch != 'ARM64'`. GitHub's hosted `ubuntu-latest` runners are amd64, so the validators still run upstream where they actually matter for HACS distribution. PRs against this Gitea fork will show no CI rather than red CI. ## Test plan - [ ] After merge, push or open a PR and confirm the run shows both jobs as skipped (gray) rather than failed (red) on Gitea. - [ ] If/when the upstream repo (or any amd64 mirror) picks up the change, confirm both jobs still execute normally.
thatguygriff added 1 commit 2026-05-26 14:03:16 +00:00
ci: skip validate workflow on ARM64 runners
Validate / Hassfest validation (pull_request) Failing after 3s
Validate / HACS validation (pull_request) Failing after 3s
5618ecf3fc
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.
thatguygriff added 1 commit 2026-05-26 14:06:27 +00:00
ci: gate validate jobs on github.server_url instead of runner.arch
Validate / Hassfest validation (pull_request) Has been skipped
Validate / HACS validation (pull_request) Has been skipped
86d3a45877
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.
thatguygriff merged commit d8bcd9195c into main 2026-05-26 14:06:49 +00:00
Sign in to join this conversation.