Skip to content

Commit

Permalink
构建脚本判断gomobile
Browse files Browse the repository at this point in the history
  • Loading branch information
alx696 committed Aug 16, 2021
1 parent 2e9b340 commit 10724d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: CI

on:
push:
Expand Down
12 changes: 6 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ go mod download

mkdir -p build

#echo "Linux"
#go build -o "build/${NAME}-linux"
#
#echo "Windows"
#sudo apt-get install -y gcc-multilib gcc-mingw-w64
#GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -o "build/${NAME}-windows"
echo "Linux"
go build -o "build/${NAME}-linux"

echo "Windows"
sudo apt-get install -y gcc-multilib gcc-mingw-w64
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -o "build/${NAME}-windows"

echo "Android"
echo "NDK路径: ${ANDROID_NDK_HOME}"
Expand Down

0 comments on commit 10724d0

Please sign in to comment.