-
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (82 loc) · 2.15 KB
/
native.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Build desktop application
on:
push:
branches:
- '**'
paths:
- 'viewer/native/**'
- 'viewer/web/**'
workflow_call:
workflow_dispatch:
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: viewer/native/package-lock.json
- name: make
run: |
cd viewer/web
npm ci --production
cd ../native
npm ci
npm run tauri build
- uses: actions/upload-artifact@v4
with:
name: build.fsk-energymeter-windows-x64
path: viewer/native/src-tauri/target/release/fsk-energymeter.exe
build-macos:
name: Build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: viewer/native/package-lock.json
- name: make
run: |
cd viewer/web
npm ci --production
cd ../native
npm ci
npm run tauri build
- uses: actions/upload-artifact@v4
with:
name: build.fsk-energymeter-macos-arm64
path: viewer/native/src-tauri/target/release/bundle/macos
build-linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: viewer/native/package-lock.json
- name: make
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
cd viewer/web
npm ci --production
cd ../native
npm ci
npm run tauri build
- uses: actions/upload-artifact@v4
with:
name: build.fsk-energymeter-linux-x64
path: viewer/native/src-tauri/target/release/bundle/appimage/fsk-energymeter*.AppImage