-
Notifications
You must be signed in to change notification settings - Fork 24
35 lines (32 loc) · 1.03 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
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
steps:
- run: rustup update stable
- run: rustup target add thumbv6m-none-eabi
- run: rustup target add wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo test
- run: cargo test --benches
- name: Build no_std ab_glyph_rasterizer
run: cargo build -p ab_glyph_rasterizer --target thumbv6m-none-eabi --no-default-features --features libm
- name: Build no_std ab_glyph
run: cargo build -p ab_glyph --target thumbv6m-none-eabi --no-default-features --features libm
- name: Build wasm32 ab_glyph_rasterizer
run: cargo build -p ab_glyph_rasterizer --target wasm32-unknown-unknown
- name: Build wasm32 ab_glyph
run: cargo build -p ab_glyph --target wasm32-unknown-unknown
rustfmt:
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo fmt -- --check