File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,11 +56,18 @@ jobs:
5656 apt-get install -y jq sudo
5757
5858
59+ - name : Download Frontend
60+ run : bash build.sh release web
61+ env :
62+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
63+ FRONTEND_REPO : ${{ vars.FRONTEND_REPO }}
64+
5965 - name : Build go binary (release)
6066 run : |
6167 sudo apt-get update && sudo apt-get install -y musl-tools
6268 mkdir -p build/linux/amd64
6369 export CGO_ENABLED=1
70+ export CC=musl-gcc
6471 go build -o build/linux/amd64/openlist -ldflags="-w -s -linkmode external -extldflags '-static -fpic'" -tags=jsoniter .
6572 env :
6673 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
7279 name : ${{ env.ARTIFACT_NAME }}
7380 path : |
7481 build/
82+ public/
7583 !build/*.tgz
7684 !build/musl-libs/**
7785
@@ -108,7 +116,7 @@ jobs:
108116 - uses : actions/download-artifact@v3
109117 with :
110118 name : ${{ env.ARTIFACT_NAME }}
111- path : ' build/ '
119+ path : .
112120
113121 - name : Install Docker
114122 run : curl -fsSL https://get.docker.com | sh
You can’t perform that action at this time.
0 commit comments