add static analysis action

This commit is contained in:
alu
2026-07-29 17:54:13 +00:00
parent ce1576fbd6
commit f5299cb5b1
3 changed files with 45 additions and 21 deletions
+8 -4
View File
@@ -1,13 +1,17 @@
.PHONY: build test clean wfa-js
build: clean build-wfa-js
build: clean ensure-dist build-web build-wfa-js
@echo "======================== Building Binary ======================="
mkdir -p dist
# resolve symbolic links in web by copying it into dist/web/
cp -rL web/ dist/web/
CGO_ENABLED=0 go build -tags release -ldflags="-s -w" -v -o dist/ .
build-wfa-js:
ensure-dist:
mkdir -p dist
build-web: ensure-dist
cp -rL web/ dist/web/
build-wfa-js: ensure-dist
$(MAKE) -C WFA-JS
cp -f WFA-JS/dist/* web/modules