Skip to content

Commit

Permalink
setup go
Browse files Browse the repository at this point in the history
  • Loading branch information
caorushizi committed Jan 14, 2024
1 parent e83ee19 commit bddf3a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
with:
node-version: "16.x"

# step3: install go env
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21.5"

# step4: install pnpm env
- uses: pnpm/action-setup@v2
with:
version: latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:plugin": "pnpm -F plugin run build",
"build:main": "pnpm -F main run build",
"build:renderer": "pnpm -F renderer run build",
"build:server": "cd internal && go install && cross-env GIN_MODE=release go build -o ../packages/main/bin/win32/server.exe",
"build:server": "cd internal && cross-env GIN_MODE=release go build -o ../packages/main/bin/win32/server.exe",
"pack": "pnpm -F media-downloader run pack",
"release": "pnpm run build && pnpm -F main run release",
"docs:dev": "vitepress dev docs",
Expand Down

0 comments on commit bddf3a9

Please sign in to comment.