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 35
35
brew install mingw-w64
36
36
# Go Build
37
37
- name : Build Binary
38
- run : make build-cross gen-checksum
38
+ run : make build-cross
39
39
# Create Git Release
40
40
- name : Extract Tag from Ref
41
41
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}"
6
6
7
7
export CGO_ENABLED=1
8
8
9
+ mkdir -p dist/
10
+ touch dist/checksums.txt
11
+
9
12
if [ " $( go env GOOS) " = " linux" ]; then
10
13
# Linux: amd64, arm64
11
14
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
12
18
else
13
19
14
20
# Windows: amd64
17
23
# Darwin: amd64, arm64
18
24
GOARCH=amd64 go build -o dist/knowledge-darwin-amd64 -tags " ${GO_TAGS} " -ldflags " ${LD_FLAGS} " .
19
25
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
20
29
fi
You can’t perform that action at this time.
0 commit comments