From 94d6eace9457cba4d775f75ceb8691ad48b58ad9 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Wed, 6 May 2026 21:33:05 -0500 Subject: [PATCH] ci: use elb to build epm and el-install (cd into project dir, use --elc flag) --- .gitea/workflows/sdk-release.yaml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/sdk-release.yaml b/.gitea/workflows/sdk-release.yaml index 7155f27..b9ce931 100644 --- a/.gitea/workflows/sdk-release.yaml +++ b/.gitea/workflows/sdk-release.yaml @@ -70,29 +70,25 @@ jobs: chmod +x dist/bin/elb echo "elb built" - # Build epm binary (epm lives at repo root, not inside lang/) + # Build epm binary using elb (epm lives at repo root, not inside lang/) - name: Build epm run: | - dist/platform/elc ../epm/src/epm.el > dist/epm.c - gcc -O2 \ - -I el-compiler/runtime \ - dist/epm.c \ - el-compiler/runtime/el_runtime.c \ - -lcurl -lssl -lcrypto -lpthread -lm \ - -o dist/bin/epm + ABS_ELB="$(pwd)/dist/bin/elb" + ABS_ELC="$(pwd)/dist/platform/elc" + ABS_RUNTIME="$(pwd)/el-compiler/runtime" + ABS_OUT="$(pwd)/dist/bin" + (cd ../epm && "$ABS_ELB" --elc="$ABS_ELC" --runtime="$ABS_RUNTIME" --out="$ABS_OUT") chmod +x dist/bin/epm echo "epm built" - # Build el-install binary + # Build el-install binary using elb - name: Build el-install run: | - dist/platform/elc tools/install/el-install.el > dist/el-install.c - gcc -O2 \ - -I el-compiler/runtime \ - dist/el-install.c \ - el-compiler/runtime/el_runtime.c \ - -lcurl -lssl -lcrypto -lpthread -lm \ - -o dist/bin/el-install + ABS_ELB="$(pwd)/dist/bin/elb" + ABS_ELC="$(pwd)/dist/platform/elc" + ABS_RUNTIME="$(pwd)/el-compiler/runtime" + ABS_OUT="$(pwd)/dist/bin" + (cd tools/install && "$ABS_ELB" --elc="$ABS_ELC" --runtime="$ABS_RUNTIME" --out="$ABS_OUT") chmod +x dist/bin/el-install echo "el-install built" -- 2.52.0