-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.18 KB
/
build.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
52
53
54
55
56
57
name: Build Wails Project
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux/amd64, windows/amd64, darwin/universal]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.23.4'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install Wails
run: |
go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Install frontend dependencies
run: |
cd src-go/blunderdb/frontend
npm install
- name: Build project
run: |
cd src-go/blunderdb
wails build -platform ${{ matrix.os }}
- name: Compress build
run: |
cd src-go/blunderdb/build/bin
tar -czf blunderdb-${{ matrix.os }}.tar.gz ./*
if: runner.os == 'Linux'
- name: Compress build (Windows)
run: |
cd src-go/blunderdb/build/bin
Compress-Archive -Path * -DestinationPath blunderdb-${{ matrix.os }}.zip
if: runner.os == 'Windows'