ci: compile elc from elc-bootstrap.c instead of looking for build.sh
Deploy marketing to Cloud Run / deploy (push) Failing after 10s

engram-lang doesn't have a build.sh in its tree; bootstrap is via
dist/elc-bootstrap.c + el-compiler/runtime/el_runtime.c.
This commit is contained in:
Will Anderson
2026-05-02 13:00:45 -05:00
parent 483408611c
commit 138e1cde64
+8 -4
View File
@@ -78,11 +78,15 @@ jobs:
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.
# (e.g. Will's macOS arm64 dev box). Compile from elc-bootstrap.c on
# the runner so the binary matches linux/amd64.
cd "$EL_HOME"
rm -f dist/platform/elc
./build.sh
mkdir -p dist/platform
cc -O2 -o dist/platform/elc \
dist/elc-bootstrap.c \
el-compiler/runtime/el_runtime.c \
-I el-compiler/runtime \
-lcurl -lpthread -ldl -lm -lssl -lcrypto
file dist/platform/elc
ls -la dist/platform/elc