This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 3535 brew install mingw-w64
3636 # Go Build
3737 - name : Build Binary
38- run : make build-cross gen-checksum
38+ run : make build-cross
3939 # Create Git Release
4040 - name : Extract Tag from Ref
4141 if : startsWith(github.ref, 'refs/tags/')
Original file line number Diff line number Diff line change @@ -6,9 +6,15 @@ LD_FLAGS="-s -w -X github.com/gptscript-ai/knowledge/version.Version=${GIT_TAG}"
66
77export CGO_ENABLED=1
88
9+ mkdir -p dist/
10+ touch dist/checksums.txt
11+
912if [ " $( go env GOOS) " = " linux" ]; then
1013 # Linux: amd64, arm64
1114 GOARCH=amd64 go build -o dist/knowledge-linux-amd64 -tags " ${GO_TAGS} " -ldflags " ${LD_FLAGS} \" -extldflags \" -static\" " .
15+
16+ # Checksum
17+ sha256sum dist/knowledge-linux-amd64 >> dist/checksums.txt
1218else
1319
1420 # Windows: amd64
1723 # Darwin: amd64, arm64
1824 GOARCH=amd64 go build -o dist/knowledge-darwin-amd64 -tags " ${GO_TAGS} " -ldflags " ${LD_FLAGS} " .
1925 GOARCH=arm64 go build -o dist/knowledge-darwin-arm64 -tags " ${GO_TAGS} " -ldflags " ${LD_FLAGS} " .
26+
27+ # Checksum
28+ shasum -a 256 dist/knowledge-windows-amd64 dist/knowledge-darwin-amd64 dist/knowledge-darwin-arm64 >> dist/checksums.txt
2029fi
You can’t perform that action at this time.
0 commit comments