-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.59 KB
/
ci.yml
File metadata and controls
62 lines (50 loc) · 1.59 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
# PR / push で svelte-check と cargo check を回す軽量 CI。
# 完全ビルドはやらない(時間がかかるため、release.yml の方で tag push 時に確認する)。
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: app/pnpm-lock.yaml
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
workspaces: app/src-tauri -> target
- name: Install Linux build deps(cargo check の依存解決に必要)
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Install frontend deps
run: pnpm install --frozen-lockfile
working-directory: app
# tauri.conf.json の bundle.externalBin が実体検証されるため、
# cargo check 前に sidecar を配置しておく必要がある。
- name: Fetch tinymist
run: ./scripts/fetch-tinymist.sh
env:
TINYMIST_TARGET: x86_64-unknown-linux-gnu
- name: svelte-check
run: pnpm check
working-directory: app
- name: cargo check
run: cargo check --workspace