Files
EntitleForge-SDK-go/.gitea/workflows/ci.yml
T
iceking2nd 81c7295893
sdk-ci / test (push) Failing after 8s
feat: 益铸 EntitleForge SDK 独立仓库首个版本
- 自主仓 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 + 零依赖断言 + 三平台交叉编译冒烟)
2026-11-09 15:42:22 +08:00

32 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 益铸 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 ./...