-
-
Notifications
You must be signed in to change notification settings - Fork 30
51 lines (43 loc) · 1.23 KB
/
bundler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: bundler
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
go-version: ["1.17.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Download Go modules
run: go mod download
- name: Download and install go-astilectron-bundler
run: |
go get github.com/asticode/go-astilectron-bundler/...
go install github.com/asticode/go-astilectron-bundler/astilectron-bundler
- name: Download npm dependencies and build Vue project
run: |
cd resources/static/vue-igopher
npm install
npm run build
- name: Bundle
run: |
cd cmd/igopher/gui-bundler
mv bind.go bind.go.tmp
astilectron-bundler -c bundler.json
- name: Cleaning
run: |
cd cmd/igopher/gui-bundler
rm bind_*.go windows.syso
mv bind.go.tmp bind.go