1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-04 23:40:24 +08:00
This commit is contained in:
源文雨
2023-05-01 00:28:33 +08:00
parent e2b67ceb19
commit 551d3edaea

View File

@@ -34,8 +34,9 @@ jobs:
- name: Install and build Frontend
run: |
sudo apt-get update
sudo apt-get install -y pnpm yarn
sudo apt update
sudo apt install -y nodejs
npm install pnpm -g
cd frontend/vben
pnpm i
go generate main.go
@@ -46,15 +47,20 @@ jobs:
run: CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o artifacts/paper-manager-linux-x86
- name: Build windows-x64
run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o artifacts/paper-manager-linux-x64.exe
run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o artifacts/paper-manager-windows-x64.exe
- name: Build windows-x86
run: CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o artifacts/paper-manager-linux-x86.exe
run: CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o artifacts/paper-manager-windows-x86.exe
- name: Build linux-arm64
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -ldflags="-s -w" -o artifacts/paper-manager-linux-arm64
- name: Build linux-armhfv6
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -o artifacts/paper-manager-linux-armhfv6
- name: Build darwin-x64
run: CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o artifacts/paper-manager-darwin-x64
- name: Build darwin-arm64
run: CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o artifacts/paper-manager-darwin-arm64
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with: