-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.63 KB
/
Copy pathci.yml
File metadata and controls
60 lines (55 loc) · 1.63 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
name: CI
on:
push:
branches: [master]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: fmt · clippy · test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: test
run: cargo test --workspace
msrv:
name: MSRV 1.88 (workspace)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@1.88
- uses: Swatinem/rust-cache@v2
- name: cargo check (workspace)
run: cargo check --workspace
# Verify the stack is mobile-portable: it cross-compiles for Android and iOS
# (the platform layer falls through to the headless backend there until the
# native ANativeWindow / UIKit backends land). oxideav is pure Rust, so no NDK
# is required for the build.
mobile:
name: Cross-compile (${{ matrix.target }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-linux-android
os: ubuntu-latest
- target: aarch64-apple-ios
os: macos-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: cargo build (umbrella crate)
run: cargo build -p forma --target ${{ matrix.target }}