Repository navigation
48 lines (47 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
48 lines (47 loc) · 1.89 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
# rolcb is a path dependency (../rolcb), so check both repos out side by side.
- uses: actions/checkout@v4
with: { path: System4Dispatch }
- uses: actions/checkout@v4
with: { repository: "${{ github.repository_owner }}/rolcb", path: rolcb }
- uses: dtolnay/rust-toolchain@stable
with: { targets: wasm32-unknown-unknown, components: "clippy, rustfmt" }
- uses: Swatinem/rust-cache@v2
with: { workspaces: System4Dispatch }
- name: Desktop build dependencies
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libxdo-dev libudev-dev
- uses: taiki-e/install-action@v2
with: { tool: mdbook }
- name: Formatting
working-directory: System4Dispatch
run: cargo fmt --all --check
- name: Test core
working-directory: System4Dispatch
run: cargo test
- name: Test core with all features (doctests, schema drift)
working-directory: System4Dispatch
run: cargo test -p s4d-core --all-features
- name: Lint core
working-directory: System4Dispatch
run: cargo clippy -p s4d-core --all-features --all-targets -- -D warnings
- name: API docs
working-directory: System4Dispatch
env: { RUSTDOCFLAGS: "-D warnings" }
run: cargo doc -p s4d-core --no-deps --all-features
- name: Book
working-directory: System4Dispatch
run: mdbook build docs
- name: Check web app
working-directory: System4Dispatch
run: cargo clippy -p system4dispatch --target wasm32-unknown-unknown -- -D warnings
- name: Check desktop app
working-directory: System4Dispatch
run: cargo clippy -p system4dispatch --no-default-features --features desktop -- -D warnings