-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 1.47 KB
/
build-release-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
37
38
39
40
41
42
43
44
45
name: Build Linux Release
on:
pull_request: # this is only temporarily for testing the action
types: [opened, synchronize, reopened, edited] # this is only temporarily for testing the action
push:
branches:
- main
workflow_dispatch:
jobs:
build-linux-release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: setup node
uses: actions/[email protected]
with:
node-version: lts/*
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: npm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Calculate hashes
run: |
sha256sum src-tauri/target/release/bundle/deb/*.deb > src-tauri/target/release/bundle/deb/SHA256SUM
- name: Upload Ubuntu installer
uses: actions/[email protected]
with:
name: build-ubuntu
path: src-tauri/target/release/bundle/deb/
retention-days: 5