ci: always rebuild elc on the runner (committed binary may be cross-arch)
Deploy marketing to Cloud Run / deploy (push) Failing after 10s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user