fix: wire El imports, fix runtime API calls, build passes
Forge Release / build-and-release (push) Failing after 3s

- forge.el: add import statements for schema/probe/compiler/install
- All files: arg(n)/arg_count() → get(args(),n)/len(args())
- compiler.el: llm_call_system (utility cap violation) → http_post_with_headers
- install.el: http_post_auth_json → http_post_json (_auth already in body)
- Makefile: local dev build using installed El SDK
- .gitea/workflows/forge-release.yaml: CI build on push + el-sdk-updated dispatch
- dist/forge: builds and runs
This commit is contained in:
Will Anderson
2026-05-02 17:45:51 -05:00
parent f9beb50ae1
commit c24197516f
6 changed files with 180 additions and 52 deletions
+23
View File
@@ -0,0 +1,23 @@
EL_LIB ?= /usr/local/lib/el
ELC ?= elc
CC ?= cc
CFLAGS := -std=c11 -O2 -I$(EL_LIB)
.PHONY: build clean install
dist/:
mkdir -p dist
dist/forge.c: src/forge.el | dist/
$(ELC) src/forge.el > dist/forge.c
dist/forge: dist/forge.c
$(CC) $(CFLAGS) -o dist/forge dist/forge.c $(EL_LIB)/el_runtime.c -lcurl -lpthread
build: dist/forge
install: dist/forge
install -m 755 dist/forge /usr/local/bin/forge
clean:
rm -rf dist/forge dist/forge.c