Debian Codegraph @

debian/missing-sources/ttf-parser/.github/workflows/main.yml

raw symbols SCIP
1 name: Rust
2
3 on: [push, pull_request]
4
5 env:
6 CARGO_TERM_COLOR: always
7
8 jobs:
9 build:
10 runs-on: ubuntu-latest
11 strategy:
12 matrix:
13 rust:
14 - 1.63.0
15 - stable
16 steps:
17 - name: Checkout
18 uses: actions/checkout@v2
19
20 - name: Install toolchain
21 uses: actions-rs/toolchain@v1
22 with:
23 profile: minimal
24 toolchain: ${{ matrix.rust }}
25 override: true
26
27 - name: Build with no default features
28 run: cargo build --no-default-features --features=no-std-float
29
30 - name: Build with std
31 run: cargo build --no-default-features --features=std
32
33 - name: Build with variable-fonts
34 run: cargo build --no-default-features --features=variable-fonts,no-std-float
35
36 - name: Build with all features
37 run: cargo build --all-features
38
39 - name: Run tests
40 run: cargo test
41
42 - name: Build C API
43 working-directory: c-api
44 run: cargo build --no-default-features
45
46 - name: Build C API with variable-fonts
47 working-directory: c-api
48 run: cargo build --no-default-features --features=variable-fonts
49
50 - name: Test C API
51 working-directory: c-api
52 run: |
53 cargo build
54 gcc test.c -o test -L./target/debug/ -lttfparser -Werror -fsanitize=address
55 env LD_LIBRARY_PATH=./target/debug/ ./test
56
57 - name: Build benches
58 working-directory: benches
59 run: cargo bench dummy # `cargo build` will not actually build it