Repository navigation
79 lines (63 loc) · 2.3 KB
/
Copy pathcheck.yml
File metadata and controls
79 lines (63 loc) · 2.3 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
name: check
# Yayın gate'i: her push/PR'de `npm run check` sunucuda koşulsuz çalışır.
# Yereldeki hiçbir şeye (hook, commit disiplini, hatırlama) bağlı değildir —
# bellek-bağımsız tek garanti katı budur.
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install (root)
run: npm ci
- name: Install (orchestrator)
run: npm --prefix orchestrator ci
- name: Run gate
run: npm run check
# Cross-platform derleme gate'i — Tauri host'unun mac + Linux'ta derlendiğini
# doğrular (kapsam: mac + Linux Ubuntu; Windows şimdilik dışarıda). Doğası gereği
# CI-only: tek-makine scripts/check.sh cross-OS derleyemez. `cargo check` = compile
# doğrulaması (B5 sınıfı cfg-dalı hatalarını yakalar); generate_context! frontendDist'i
# gömdüğü için önce frontend build edilir.
tauri-compile:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Linux Tauri sistem bağımlılıkları
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev \
libayatana-appindicator3-dev libxdo-dev libssl-dev
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install (root)
run: npm ci
- name: Install (orchestrator)
run: npm --prefix orchestrator ci
# build:all = orchestrator (tsc → orchestrator/dist) + frontend (→ dist).
# tauri.conf resources orchestrator/dist + node_modules'ı gömdüğü ve
# generate_context! frontendDist'i okuduğu için ikisi de gerekli (gerçek
# beforeBuildCommand ile birebir aynı).
- name: Build orchestrator + frontend
run: npm run build:all
- name: cargo check (Tauri host)
run: cargo check --manifest-path src-tauri/Cargo.toml