Skip to content

Commit

Permalink
upd ci,.,.d././
Browse files Browse the repository at this point in the history
  • Loading branch information
ii64 committed Dec 17, 2020
1 parent a944164 commit 89fb3c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
run: |
mkdir build
cd cli && sudo make && cd ..
export B_SHA_SUB="$(echo "$GITHUB_SHA" | cut -c1-8)"
export B_CLIDIR="./cli"
export B_CLINAME="$B_CLIDIR/tanem.go"
export B_HEADERFILE="$B_CLIDIR/deps/include/."
Expand All @@ -39,10 +40,7 @@ jobs:
- name: Build linux amd64
run: |
mkdir build/linux_amd64
export B_SHA_SUB="$(echo "$GITHUB_SHA" | cut -c1-8)"
export CGO_LDFLAGS="-X github.com/ii64/tanem/cmd.GIT_COMMIT=$B_SHA_SUB"
echo $CGO_LDFLAGS
GOOS=linux GOARCH=amd64 go build -x -v -o build/linux_amd64/tanem cli/tanem.go
GOOS=linux GOARCH=amd64 go build -x -v -ldflags "-X github.com/ii64/tanem/cmd.GIT_COMMIT=$B_SHA_SUB" -o build/linux_amd64/tanem cli/tanem.go
zip -r ./tanem-linux-amd64.zip --junk-paths build/linux_amd64/*
zip -r ./tanem-linux-amd64-lib.zip --junk-paths cli/deps/lib/*
Expand Down
2 changes: 1 addition & 1 deletion cli/make.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@ECHO off
go build -i -v -ldflags "-X github.com/ii64/tanem/cmd.GIT_COMMIT=local" tanem.go
go build -i -v -ldflags "-X github.com/ii64/tanem/cmd.GIT_COMMIT=local -lpthread" tanem.go

0 comments on commit 89fb3c6

Please sign in to comment.