Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ii64 committed Dec 17, 2020
1 parent 402a902 commit 076ce8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
cd cli && sudo make && cd ..
export B_CLIDIR="./cli"
export B_CLINAME="$B_CLIDIR/tanem.go"
export B_CGO_CFLAGS="-I$B_CLIDIR/deps/include"
export B_CGO_LDFLAGS="-L$B_CLIDIR/deps/lib -X github.com/ii64/tanem/cmd.GIT_COMMIT=$B_SHA_SUB"
export CGO_LDFLAGS="-X github.com/ii64/tanem/cmd.GIT_COMMIT=$B_SHA_SUB"
export B_HEADERFILE="$B_CLIDIR/deps/include/."
export B_LIBSFILE="$B_CLIDIR/deps/lib/."
sudo cp -a "$B_HEADERFILE" /usr/include
Expand All @@ -43,8 +42,6 @@ jobs:
run: |
mkdir build/linux_amd64
cp -a "./cli/deps/lib" build/linux_amd64/lib
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
zip -r ./tanem-linux-amd64.zip --junk-paths build/linux_amd64/*
Expand Down
3 changes: 2 additions & 1 deletion cli/make.bat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
go build -i -v -x tanem.go
@ECHO off
go build -i -v -ldflags "-X github.com/ii64/tanem/cmd.GIT_COMMIT=local" tanem.go

0 comments on commit 076ce8c

Please sign in to comment.