Repository navigation
107 lines (101 loc) · 3.02 KB
/
Copy pathci.yml
File metadata and controls
107 lines (101 loc) · 3.02 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
renderer:
name: Renderer smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: node tools/smoke.js
- run: npm test
- run: node tools/check-version.js
rust:
name: Rust checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libxdo-dev \
libayatana-appindicator3-dev \
libdbus-1-dev \
librsvg2-dev
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
- run: cargo test --manifest-path src-tauri/Cargo.toml
- run: cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
package:
name: Tauri package build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libxdo-dev \
libayatana-appindicator3-dev \
libdbus-1-dev \
librsvg2-dev
- run: npm ci
# Validation build only — updater artifacts need signing keys we don't
# want in fork PRs, so leave createUpdaterArtifacts off here.
- run: npm run build -- --config '{"bundle":{"createUpdaterArtifacts":false}}'
windows:
name: Windows build
# Deferred from v0.6.0 until the platform is intentionally resumed.
if: ${{ false }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: npm ci
- run: npm run smoke
- run: npm run build -- --config '{"bundle":{"createUpdaterArtifacts":false}}'
macos:
name: macOS build
# Deferred from v0.6.0 until the platform is intentionally resumed.
if: ${{ false }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: npm ci
- run: npm run smoke
- run: npm run build -- --config '{"bundle":{"createUpdaterArtifacts":false}}'