-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (53 loc) · 1.75 KB
/
ci.yml
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
name: mitex::ci
on: [push, pull_request]
env:
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CARGO_INCREMENTAL: "0"
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { submodules: recursive }
- uses: typst-community/setup-typst@v3
with: { typst-version: "0.10.0" }
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@stable
with: { targets: wasm32-unknown-unknown }
- uses: mozilla-actions/[email protected]
- run: cargo test --workspace --no-fail-fast
checks:
name: Check clippy, formatting, and documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { submodules: recursive }
- uses: typst-community/setup-typst@v3
with: { typst-version: "0.10.0" }
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@stable
with: { targets: wasm32-unknown-unknown }
- uses: mozilla-actions/[email protected]
- run: cargo clippy --workspace --all-targets --all-features
- run: cargo fmt --check --all
- run: cargo doc --workspace --no-deps
build-wasm-plugin:
name: Build Wasm modules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { submodules: recursive }
- uses: typst-community/setup-typst@v3
with: { typst-version: "0.10.0" }
- uses: rui314/setup-mold@v1
- uses: dtolnay/rust-toolchain@stable
with: { targets: wasm32-unknown-unknown }
- uses: jetli/[email protected]
with:
version: "v0.12.1"
- uses: mozilla-actions/[email protected]
- run: scripts/build.sh