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