mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-13 05:03:16 +08:00
fix ci
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -34,8 +34,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install and build Frontend
|
- name: Install and build Frontend
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt update
|
||||||
sudo apt-get install -y pnpm yarn
|
sudo apt install -y nodejs
|
||||||
|
npm install pnpm -g
|
||||||
cd frontend/vben
|
cd frontend/vben
|
||||||
pnpm i
|
pnpm i
|
||||||
go generate main.go
|
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
|
run: CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o artifacts/paper-manager-linux-x86
|
||||||
|
|
||||||
- name: Build windows-x64
|
- 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
|
- 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
|
- 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
|
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
|
- 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
|
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
|
- name: Upload binaries to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user