forked from flomesh-io/ztm
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.19 KB
/
linux-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
name: linux-build
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '21'
- name: Install dependencies
run: |
sudo apt install -y build-essential \
pkg-config \
libgtk-3-dev \
libssl-dev \
libjavascriptcoregtk-4.1-dev \
libsoup-3.0-dev \
libwebkit2gtk-4.1-dev
- name: build app
run: |
cd gui
yarn install
yarn build-ztm-linux
NODE_OPTIONS="--max-old-space-size=4096" yarn build:base
- uses: actions/upload-artifact@v2
with:
name: rpm
path: ./gui/src-tauri/target/release/bundle/rpm/ztapp-${{ vars.APP_VERSION }}-1.x86_64.rpm
- uses: actions/upload-artifact@v2
with:
name: deb
path: ./gui/src-tauri/target/release/bundle/deb/ztapp_${{ vars.APP_VERSION }}_amd64.deb
- uses: actions/upload-artifact@v2
with:
name: appimage
path: ./gui/src-tauri/target/release/bundle/appimage/ztapp_${{ vars.APP_VERSION }}_amd64.AppImage