From 483408611c8de413a1319f796802333d24fc69dd Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sat, 2 May 2026 12:59:46 -0500 Subject: [PATCH] ci: always rebuild elc on the runner (committed binary may be cross-arch) The committed dist/platform/elc was an arm64 binary from the local dev box; runner is linux/amd64 and got 'cannot execute binary file: Exec format error'. Always rebuild. --- .gitea/workflows/deploy.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index fd111e6..21dc246 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -74,13 +74,16 @@ jobs: - name: Configure docker auth for Artifact Registry run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet - - name: Build elc if not already present + - name: Build elc fresh on the runner run: | set -euo pipefail + # The committed dist/platform/elc may be from a different architecture + # (e.g. Will's macOS arm64 dev box). Always rebuild on the runner so + # the binary matches linux/amd64. cd "$EL_HOME" - if [ ! -x dist/platform/elc ]; then - ./build.sh - fi + rm -f dist/platform/elc + ./build.sh + file dist/platform/elc ls -la dist/platform/elc - name: Compute image tag