Skip to content

Commit f81e424

Browse files
authored
Merge pull request #130 from wgqqqqq/main
ci: run rust check on linux/mac/windows
2 parents 9726d48 + eab3d08 commit f81e424

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ permissions:
1717
jobs:
1818
# ── Rust: build check ─────────────────────────────────────────────
1919
rust-build-check:
20-
name: Rust Build Check
21-
runs-on: ubuntu-latest
20+
name: Rust Build Check (${{ matrix.os }})
21+
runs-on: ${{ matrix.os }}
2222
needs: frontend-build
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os:
27+
- ubuntu-latest
28+
- macos-15
29+
- windows-latest
2330
steps:
2431
- uses: actions/checkout@v4
2532

@@ -30,9 +37,12 @@ jobs:
3037
path: dist
3138

3239
- name: Create mobile-web dist directory (workaround for Tauri)
33-
run: mkdir -p mobile-web/dist
40+
shell: bash
41+
run: mkdir -p src/mobile-web/dist
3442

3543
- name: Install Linux system dependencies (Tauri)
44+
if: runner.os == 'Linux'
45+
shell: bash
3646
run: |
3747
sudo apt-get update
3848
if apt-cache show libwebkit2gtk-4.1-dev >/dev/null 2>&1; then
@@ -60,10 +70,10 @@ jobs:
6070

6171
- uses: swatinem/rust-cache@v2
6272
with:
63-
shared-key: "ci-check"
73+
shared-key: "ci-check-${{ runner.os }}"
6474

6575
- name: Check compilation
66-
run: cargo check --workspace --exclude bitfun-desktop
76+
run: cargo check --workspace --exclude bitfun-cli
6777

6878
# ── Frontend: build ────────────────────────────────────────────────
6979
frontend-build:

src/apps/desktop/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"productName": "BitFun",
44
"identifier": "com.bitfun.desktop",
55
"build": {
6-
"beforeDevCommand": "pnpm run dev:web",
6+
"beforeDevCommand": "pnpm run type-check:web && pnpm run dev:web",
77
"devUrl": "http://localhost:1422",
88
"beforeBuildCommand": "pnpm run build:web && pnpm run prepare:mobile-web",
99
"frontendDist": "../../../dist"

src/web-ui/src/app/components/NavPanel/sections/sessions/SessionsSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import type { FlowChatState, Session } from '../../../../../flow_chat/types/flow
1515
import { useSceneStore } from '../../../../stores/sceneStore';
1616
import { useApp } from '../../../../hooks/useApp';
1717
import type { SceneTabId } from '../../../SceneBar/types';
18-
import type { SessionMode } from '../../../../stores/sessionModeStore';
1918
import { useWorkspaceContext } from '@/infrastructure/contexts/WorkspaceContext';
2019
import { createLogger } from '@/shared/utils/logger';
2120
import './SessionsSection.scss';

0 commit comments

Comments
 (0)