mirror of https://github.com/Xhofe/alist
💚 change xgo
parent
5c2491b6c3
commit
e10412c530
|
@ -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
|
||||
|
|
2
build.sh
2
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue