Skip to content

Commit

Permalink
+ [ci] add windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Aug 5, 2024
1 parent 6610c62 commit 52e8c79
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: build on windows

env:
# Common versions
GO_VERSION: '1.22'
TZ: Asia/Shanghai

permissions: write-all

on:
push:
branches:
- '*'
# paths:
# - '**.go'
# - 'go.mod'
# - '.github/workflows/*.yml'
# pull_request:
# branches:
# - "*"
# paths:
# - '**.go'

jobs:
build:
name: "build"
timeout-minutes: 20
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: install global dependencies
run: |
npm install -g yarn
npm install -g electron-forge
- name: install tools
run: |
echo "install tools"
go install github.com/kevinburke/go-bindata/v4/...@latest
- name: Release
run: |
cd ui && yarn install && cd ..
cd client && yarn install && cd ..
make compile_ui
make default

0 comments on commit 52e8c79

Please sign in to comment.