ci: compile elc from elc-bootstrap.c instead of looking for build.sh
Deploy marketing to Cloud Run / deploy (push) Failing after 10s
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user