Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
李聪 committed Apr 8, 2022
1 parent d67eb44 commit 2b4bdc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
stable: 'true'
go-version: '^1.16.1'
- name: build
run: mkdir -p ~/go/bin/ && export GOPATH=~/go/bin/ && go get github.com/mitchellh/gox && cp `go env GOPATH`/bin/gox /bin/ && mkdir dist && perl build.pl && ls -al dist/
run: go installed github.com/mitchellh/gox@latest && cp `go env GOPATH`bin/gox /bin/ && mkdir dist && perl build.pl && ls -al dist/
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sub command_exsits {
my $exit = system("which $cmd > /dev/null 2>&1");
return $exit == 0;
}
$ENV{PATH} .= "~/go/bin/";
$ENV{PATH} .= "/home/runner/go/bin/";
$ENV{CGO_ENABLED} = 0;
if(command_exsits('gox')) {
print("[INFO] gox command found , now run gox build.\n");
Expand Down

0 comments on commit 2b4bdc7

Please sign in to comment.