💚 change xgo

pull/548/head
微凉 2022-01-10 18:18:11 +08:00
parent 5c2491b6c3
commit e10412c530
2 changed files with 3 additions and 6 deletions

View File

@ -25,9 +25,6 @@ jobs:
with:
node-version: '16'
# - name: Setup docker
# uses: docker-practice/actions-setup-docker@master
- name: Checkout
uses: actions/checkout@v2
with:
@ -43,8 +40,8 @@ jobs:
- name: Set up xgo
run: |
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
docker pull crazymax/xgo:latest
go install github.com/crazy-max/xgo
sudo apt install upx
- name: Build

View File

@ -70,7 +70,7 @@ ldflags="\
if [ "$1" == "release" ]; then
xgo -out alist -ldflags="$ldflags" -tags=jsoniter .
else
xgo -targets=linux/amd64,windows/amd64 -out alist -ldflags="$ldflags" -tags=jsoniter .
xgo -targets=linux/amd64,windows/amd64,darwin/amd64 -out alist -ldflags="$ldflags" -tags=jsoniter .
fi
mkdir "build"
mv alist-* build