From 138e1cde64c2b164202864526e98982b56ca2ba9 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sat, 2 May 2026 13:00:45 -0500 Subject: [PATCH] ci: compile elc from elc-bootstrap.c instead of looking for build.sh engram-lang doesn't have a build.sh in its tree; bootstrap is via dist/elc-bootstrap.c + el-compiler/runtime/el_runtime.c. --- .gitea/workflows/deploy.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 21dc246..cc7b903 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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