- 自主仓 git.wxccs.org/EntitleForge/EntitleForge 拆分(协议实现单一归属: license/crypto/ulid 随 SDK 迁出,服务端反向依赖本仓) - sdk:Client 三模式(文件/远程/代理)、GRACE 状态机、查询 API(6.6ns/0 alloc) - license:三段式编解码与严格解析;crypto:Ed25519 信任链 + Proxy 受约束证书 - 零第三方依赖(CI 有依赖闭包断言红线);go.mod 零 require - CI:Gitea Actions(test + 零依赖断言 + 三平台交叉编译冒烟)
This commit is contained in:
32 files changed
+3940
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# 益铸 EntitleForge SDK CI(Gitea Actions;零第三方依赖库,流水线同样零 action 依赖)
|
||||
name: sdk-ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["*"]
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CGO_ENABLED: "0"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: 全量测试(race + shuffle)
|
||||
run: go test -race -shuffle=on ./...
|
||||
- name: 依赖闭包断言(零第三方依赖红线)
|
||||
run: |
|
||||
DEPS=$(go list -deps ./... | grep -vE "^(internal|vendor)/" | grep "\." | \
|
||||
grep -v "^git.wxccs.org/EntitleForge/EntitleForge-SDK-go" || true)
|
||||
if [ -n "$DEPS" ]; then
|
||||
echo "SDK 引入了第三方依赖(违反零依赖红线):"; echo "$DEPS"; exit 1
|
||||
fi
|
||||
echo "依赖闭包:纯标准库 ✓"
|
||||
- name: 交叉编译冒烟(CGO free)
|
||||
run: |
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./...
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./...
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build ./...
|
||||
Reference in new issue
Block a user