Debian Codegraph @

.cargo/vendor/cbindgen/.github/workflows/cbindgen.yml

raw
1 name: cbindgen
2
3 on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - master
10
11 jobs:
12 rustfmt-clippy:
13
14 runs-on: ubuntu-latest
15
16 steps:
17 - uses: actions/checkout@v3
18
19 - name: Install stable
20 uses: dtolnay/rust-toolchain@stable
21 with:
22 components: "clippy, rustfmt"
23
24 - name: Run rustfmt
25 run: |
26 cargo +stable fmt --check
27
28 - name: Run clippy
29 run: |
30 cargo +stable clippy --workspace -- -D warnings
31
32 - name: Install minimum supported Rust version
33 id: msrv
34 uses: dtolnay/[email protected]
35
36 - name: Build with minimum supported Rust version
37 run: |
38 cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose
39
40 build:
41
42 runs-on: ubuntu-latest
43
44 steps:
45 - uses: actions/checkout@v3
46
47 - name: Install stable Rust
48 uses: dtolnay/rust-toolchain@stable
49
50 - name: Install Python
51 uses: actions/setup-python@v4
52 with:
53 python-version: '3.8'
54
55 - name: Install Cython
56 run: |
57 python -m pip install --upgrade pip wheel
58 pip install Cython==0.29.*
59
60 - name: Build
61 run: |
62 cargo +stable build --verbose
63
64 - name: Build no-default-features
65 run: |
66 cargo +stable build --verbose --no-default-features
67
68 - name: Test package
69 env:
70 CBINDGEN_TEST_VERIFY: 1
71 run: |
72 cargo +stable package --verbose
73 (cd target/package/cbindgen-$(cargo +stable run -- --version | cut -d ' ' -f 2) && cargo +stable test --verbose)
74
75 - name: Install nightly Rust
76 uses: dtolnay/rust-toolchain@nightly
77
78 - name: Test
79 env:
80 CBINDGEN_TEST_VERIFY: 1
81 run: |
82 cargo +nightly test --verbose
83
84 - name: Test minimal-versions
85 run: |
86 cargo +nightly update -Zminimal-versions
87 cargo +nightly test