forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (72 loc) · 2.18 KB
/
tauri-ci.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
name: Native App
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# Skip binary downloads during install
YOUTUBE_DL_SKIP_DOWNLOAD: true
ADBLOCK: true
PUPPETEER_SKIP_DOWNLOAD: true
CYPRESS_INSTALL_BINARY: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
on:
push:
branches: [main, develop, v2-develop]
paths:
- 'packages/app/**'
- '.github/workflows/**'
pull_request:
branches: [v2-develop]
paths:
- 'packages/app/**'
- '.github/workflows/**'
jobs:
test-build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '23'
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Setup Rust
run: |
rustup update stable
rustup default stable
shell: bash
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './packages/app/src-tauri -> target'
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libx11-dev libxdo-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: Install dependencies
run: bun install
env:
NPM_CONFIG_IGNORE_SCRIPTS: true
- name: Build packages
run: bun run build
- name: Run TypeScript check
run: |
cd packages/app
bun run typecheck
- name: Install Tauri CLI
run: |
bun install -g @tauri-apps/cli
shell: bash
- name: Test build (verify it compiles)
run: |
cd packages/app
bun run tauri build --debug