forked from death7654/Chrultrabook-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.03 KB
/
build-linux.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
name: 'linux build'
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install build dependencies
run: |
sudo apt update -y
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf desktop-file-utils librust-libudev-sys-dev
- name: Install npm dependencies
run: npm install
- name: Build application
run: npm run tauri build
- name: Linux AppImage Packaging
run: ./linux_appimage.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Chrultrabook-Controller
retention-days: 5
path: target/release/bundle/appimage/chrultrabook*.AppImage