Skip to content

Commit a361994

Browse files
committed
ci: Split build workflow into ci and release workflows.
- Add CI workflow to build and lint on regular pushes. - Add release workflow to build and draft release with various platform artifacts on version tags.
1 parent 3e5b232 commit a361994

2 files changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
tags-ignore: ['v*']
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Install Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '1.22'
22+
23+
- name: Vet backend
24+
run: go vet ./backend/...
25+
26+
- name: Install Linux dependencies
27+
run: sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev
28+
29+
- name: Install Wails
30+
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
31+
32+
- name: Install frontend dependencies
33+
run: npm install
34+
working-directory: frontend
35+
36+
- name: Lint frontend
37+
run: npm run lint
38+
working-directory: frontend
39+
40+
- name: Build application
41+
run: wails build -tags webkit2_41
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
name: Release
2+
13
on:
24
push:
35
tags:
4-
- "v*"
6+
- 'v*'
7+
58
jobs:
69
package:
710
strategy:
@@ -29,7 +32,6 @@ jobs:
2932
run: |
3033
export PATH=${PATH}:`go env GOPATH`/bin
3134
wails build
32-
echo "converting .app into a .dmg"
3335
npm install -g appdmg
3436
appdmg dmg-spec.json optimus.dmg
3537
zip optimus.zip optimus.dmg

0 commit comments

Comments
 (0)