-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (76 loc) · 2.3 KB
/
Copy pathdevelopment.yml
File metadata and controls
89 lines (76 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
80
81
82
83
84
85
86
87
88
89
name: Dev CI (fast)
on:
push:
branches: [ Dev ]
paths:
- 'Frontend/**'
- 'Backend/**'
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/development.yml'
pull_request:
branches: [ Dev ]
paths:
- 'Frontend/**'
- 'Backend/**'
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/development.yml'
concurrency:
group: dev-${{ github.ref }}
cancel-in-progress: true
jobs:
dev:
runs-on: ubuntu-24.04
permissions:
contents: read
env:
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: 'true'
SCCACHE_CACHE_SIZE: '2G'
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
fetch-depth: 0
lfs: true
# ---------- Frontend: lint + typecheck ----------
- name: Setup Node
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: Frontend/package-lock.json
- name: Install frontend deps
working-directory: Frontend
run: npm ci --no-audit --no-fund
- name: Lint
working-directory: Frontend
run: npm run lint --if-present
- name: Typecheck
working-directory: Frontend
run: npm run typecheck --if-present
# ---------- Backend: cargo check ----------
- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable
- name: Setup sccache
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
- name: Install Linux build deps
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libgtk-3-dev \
libglib2.0-dev \
libgdk-pixbuf-2.0-dev \
libpango1.0-dev \
libsoup-3.0-dev \
libwebkit2gtk-4.1-dev
pkg-config --modversion javascriptcoregtk-4.1
- name: Rust cache
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
- name: Cargo check
run: cargo check