ci: always rebuild elc on the runner (committed binary may be cross-arch)
Deploy marketing to Cloud Run / deploy (push) Failing after 10s

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.
This commit is contained in:
Will Anderson
2026-05-02 12:59:46 -05:00
parent 654b977796
commit 483408611c
+7 -4
View File
@@ -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