-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (58 loc) · 2.05 KB
/
Copy pathci.yml
File metadata and controls
74 lines (58 loc) · 2.05 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libspeechd-dev libclang-dev
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy (Linux features)
run: cargo clippy --no-default-features --features system,cloud -- -D warnings
- name: Build (Linux features)
run: cargo build --no-default-features --features system,cloud
- name: Run tests
run: cargo test --no-default-features --features system,cloud
- name: Build cloud-only
run: cargo build --no-default-features --features cloud
- name: Upload C header
uses: actions/upload-artifact@v4
with:
name: tts_wrapper_header
path: include/tts_wrapper.h
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy (macOS features)
run: cargo clippy --no-default-features --features avsynth,cloud -- -D warnings
- name: Build (macOS features)
run: cargo build --no-default-features --features avsynth,cloud
- name: Run tests
run: cargo test --no-default-features --features avsynth,cloud
windows-build:
runs-on: windows-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy (Windows features)
run: cargo clippy --no-default-features --features sapi,cloud -- -D warnings
- name: Build (Windows features)
run: cargo build --no-default-features --features sapi,cloud
- name: Run tests
run: cargo test --no-default-features --features sapi,cloud