-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (78 loc) · 3.03 KB
/
rust.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
87
88
89
90
91
92
93
94
95
name: Builds
on:
push:
branches: [ "master", "stable" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-13", "macos-latest" ]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Setup dependencies
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get update && sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
- name: Build
run: cd ui && npm install && npm run tauri build
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'windows')
with:
name: prontus.exe (amd64)
path: "./ui/src-tauri/target/release/ui.exe"
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'windows')
with:
name: prontus_0.1.0_x64_en-US.msi
path: "./ui/src-tauri/target/release/bundle/msi/prontus_0.1.0_x64_en-US.msi"
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'windows')
with:
name: prontus_0.1.0_x64-setup.exe
path: "./ui/src-tauri/target/release/bundle/nsis/prontus_0.1.0_x64-setup.exe"
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: prontus_0.1.0_amd64.deb
path: ./ui/src-tauri/target/release/bundle/deb/prontus_0.1.0_amd64.deb
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: prontus-0.1.0-1.x86_64.rpm
path: ./ui/src-tauri/target/release/bundle/rpm/prontus-0.1.0-1.x86_64.rpm
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'ubuntu')
with:
name: prontus_0.1.0_amd64.AppImage
path: ./ui/src-tauri/target/release/bundle/appimage/prontus_0.1.0_amd64.AppImage
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos-13')
with:
name: Prontus.app (amd64)
path: ./ui/src-tauri/target/release/bundle/macos/prontus.app
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos-13')
with:
name: prontus_0.1.0_x64.dmg
path: ./ui/src-tauri/target/release/bundle/dmg/prontus_0.1.0_x64.dmg
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos-latest')
with:
name: Prontus.app (aarch64)
path: ./ui/src-tauri/target/release/bundle/macos/prontus.app
- uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos-latest')
with:
name: prontus_0.1.0_aarch64.dmg
path: ./ui/src-tauri/target/release/bundle/dmg/prontus_0.1.0_aarch64.dmg