Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 permissions:
4 contents: read
5
6 on:
7 pull_request:
8 push:
9 branches:
10 - master
11 schedule:
12 - cron: '0 2 * * 0'
13
14 env:
15 CARGO_INCREMENTAL: 0
16 CARGO_NET_GIT_FETCH_WITH_CLI: true
17 CARGO_NET_RETRY: 10
18 CARGO_TERM_COLOR: always
19 RUST_BACKTRACE: 1
20 RUSTFLAGS: -D warnings
21 RUSTDOCFLAGS: -D warnings
22 RUSTUP_MAX_RETRIES: 10
23
24 defaults:
25 run:
26 shell: bash
27
28 jobs:
29 fmt:
30 uses: smol-rs/.github/.github/workflows/fmt.yml@main
31 security_audit:
32 uses: smol-rs/.github/.github/workflows/security_audit.yml@main
33 permissions:
34 checks: write
35 contents: read
36 issues: write
37 secrets: inherit
38
39 test:
40 runs-on: ${{ matrix.os }}
41 strategy:
42 fail-fast: false
43 matrix:
44 os: [ubuntu-latest]
45 rust: [nightly, beta, stable]
46 steps:
47 - uses: actions/checkout@v4
48 - name: Install Rust
49 run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
50 - run: cargo build --all --all-features --all-targets
51 - name: Run cargo check (without dev-dependencies to catch missing feature flags)
52 if: startsWith(matrix.rust, 'nightly')
53 run: cargo check -Z features=dev_dep
54 - run: cargo test
55
56 clippy:
57 runs-on: ubuntu-latest
58 steps:
59 - uses: actions/checkout@v4
60 - name: Install Rust
61 run: rustup update stable
62 - run: cargo clippy --all-features --all-targets