-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (44 loc) · 1.38 KB
/
Copy pathci.yml
File metadata and controls
61 lines (44 loc) · 1.38 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CI: true
jobs:
lint-and-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: npx tsc --noEmit
name: Type check
- run: npx vitest run
name: Run tests
- run: npm ci --prefix src-tauri/pi-server
name: Install pi-server dependencies
- run: npm run test:server
name: Run pi-server tests
windows-native:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
with:
path: stt/target/sherpa-onnx-prebuilt
key: sherpa-onnx-1.13.4-windows-x64-static-mt
- run: node scripts/with-native-build-env.mjs cargo test --manifest-path stt/Cargo.toml --lib
name: Test local speech engine
- name: Create generated resource placeholder
shell: pwsh
run: New-Item -ItemType File -Path src-tauri/pi-server.zip -Force
- run: node scripts/with-native-build-env.mjs cargo check --manifest-path src-tauri/Cargo.toml
name: Check Tauri native layer
env:
SHERPA_ONNX_ARCHIVE_DIR: ${{ github.workspace }}\stt\target\sherpa-onnx-prebuilt