-
Notifications
You must be signed in to change notification settings - Fork 1
111 lines (84 loc) · 2.68 KB
/
ci-check-compile-desktop.yaml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Check desktop compile
on:
push:
branches:
- main
paths:
- "apps/desktop/**"
- ".github/workflows/ci-check-compile-desktop.yaml"
pull_request:
branches:
- main
paths:
- "apps/desktop/**"
- ".github/workflows/ci-check-compile-desktop.yaml"
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_REMOTE_ONLY: true
RUSTFLAGS: "-Zthreads=4"
jobs:
check-compile-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# install bun
- uses: oven-sh/setup-bun@v1
# install rust
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Install bun dependencies
run: bun install
- name: Check if project compiles
run: bunx turbo run build --filter=td-ollama-desktop
- name: Archive compiled for windows
uses: actions/upload-artifact@v4
with:
name: windows-compiled-msi-nsis
path: target/release/bundle/**/*
check-compile-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# install bun
- uses: oven-sh/setup-bun@v1
# install rust
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- run: sudo apt-get update
- name: Install Tauri prerequisites
run: sudo apt-get install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
- name: Install bun dependencies
run: bun install
- name: Check if project compiles
run: bunx turbo run build --filter=td-ollama-desktop
- name: Archive compiled for linux
uses: actions/upload-artifact@v4
with:
name: linux-compiled-rpm-deb
path: |
target/release/bundle/**/*
!target/release/bundle/appimage
check-compile-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
# install bun
- uses: oven-sh/setup-bun@v1
# install rust
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Install bun dependencies
run: bun install
- name: Install macos target
run: rustup target add x86_64-apple-darwin
- name: Check if project compiles
run: bunx turbo run build --filter=td-ollama-desktop -- --target=x86_64-apple-darwin
- name: Archive compiled for macos
uses: actions/upload-artifact@v4
with:
name: macos-compiled-app-dmg
path: target/x86_64-apple-darwin/release/bundle/**/*