-
Notifications
You must be signed in to change notification settings - Fork 649
153 lines (152 loc) · 5.08 KB
/
Copy pathdesktop_ci.yaml
File metadata and controls
153 lines (152 loc) · 5.08 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# https://github.com/tauri-apps/tauri-action/blob/3013cac/examples/test-build-only.yml
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/desktop_ci.yaml
- apps/desktop/**
- plugins/**
- crates/**
- Cargo.toml
- Cargo.lock
pull_request:
paths:
- .github/workflows/desktop_ci.yaml
- apps/desktop/**
- plugins/**
- crates/**
- Cargo.toml
- Cargo.lock
jobs:
desktop_ci:
if: ${{ !startsWith(github.head_ref || '', 'blog/') }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
include:
- platform: "macos"
runner: "depot-macos-15"
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: ./.github/actions/pnpm_install
- uses: denoland/setup-deno@v2
- run: pnpm -F ui build
- run: pnpm -F desktop typecheck
- run: pnpm -F desktop test
- run: pnpm -F desktop i18n:check
- uses: ./.github/actions/install_desktop_deps
with:
target: ${{ matrix.platform }}
- uses: ./.github/actions/rust_install
with:
platform: ${{ matrix.platform }}
- if: matrix.platform == 'macos'
run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
- run: cargo check -p desktop
- run: cargo test -p desktop
- run: |
cargo test --workspace \
--exclude desktop \
--exclude control-tauri \
--exclude ai \
--exclude email \
--exclude lago \
--exclude mac \
--exclude notch \
--exclude notification-macos \
--exclude notification-macos2 \
--exclude tcc \
--exclude apple-note \
--exclude notification-linux \
--exclude am \
--exclude aec \
--exclude agc \
--exclude whisper \
--exclude whisper-local \
--exclude whisper-local-model \
--exclude vad2 \
--exclude vad \
--exclude vvad \
--exclude vad-masking \
--exclude vad-chunking \
--exclude onnx \
--exclude pyannote-local \
--exclude llama \
--exclude tools \
--exclude docs \
--exclude bundle \
--exclude host \
--exclude intercept \
--exclude frontmatter \
--exclude openstatus \
--exclude audio \
--exclude audio-device \
--exclude transcribe-whisper-local \
--exclude device-monitor \
--exclude cactus-sys \
--exclude cactus \
--exclude transcribe-cactus \
--exclude llm-cactus \
--exclude local-llm-core \
--exclude local-stt-server \
--exclude mobile-bridge \
--exclude tauri-plugin-analytics\
--exclude tauri-plugin-apple-calendar \
--exclude tauri-plugin-audio-priority \
--exclude tauri-plugin-auth \
--exclude tauri-plugin-bedrock \
--exclude tauri-plugin-db2 \
--exclude tauri-plugin-deeplink2 \
--exclude tauri-plugin-detect \
--exclude tauri-plugin-fs-db \
--exclude tauri-plugin-fs-sync \
--exclude tauri-plugin-fs2 \
--exclude tauri-plugin-hooks \
--exclude tauri-plugin-icon \
--exclude tauri-plugin-importer \
--exclude tauri-plugin-js \
--exclude tauri-plugin-listener \
--exclude tauri-plugin-listener2 \
--exclude tauri-plugin-local-llm \
--exclude tauri-plugin-local-stt \
--exclude tauri-plugin-misc \
--exclude tauri-plugin-network \
--exclude tauri-plugin-notification \
--exclude tauri-plugin-notify \
--exclude tauri-plugin-opener2 \
--exclude tauri-plugin-overlay \
--exclude tauri-plugin-path2 \
--exclude tauri-plugin-pdf \
--exclude tauri-plugin-permissions \
--exclude tauri-plugin-screen \
--exclude tauri-plugin-settings \
--exclude tauri-plugin-sfx \
--exclude tauri-plugin-sidecar2 \
--exclude tauri-plugin-store2 \
--exclude tauri-plugin-tantivy \
--exclude tauri-plugin-template \
--exclude tauri-plugin-tracing \
--exclude tauri-plugin-tray \
--exclude tauri-plugin-updater2 \
--exclude tauri-plugin-webhook \
--exclude tauri-plugin-windows \
--exclude db3 \
--exclude db-core \
--exclude activity-capture-macos \
--exclude tauri-plugin-activity-capture
ci:
if: always()
needs: [desktop_ci]
runs-on: ubuntu-latest
steps:
- run: exit 1
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')