Debian Codegraph @

debian/missing-sources/crc32fast/.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 pull_request:
5 branches:
6 - master
7 push:
8 branches:
9 - master
10
11 jobs:
12 stable:
13 name: stable
14 strategy:
15 matrix:
16 os:
17 - ubuntu-latest
18 - macos-latest
19 - windows-latest
20 runs-on: ${{ matrix.os }}
21 steps:
22 - uses: actions/checkout@v4
23 - name: Install Rust
24 run: rustup update stable --no-self-update
25 - name: Test in debug mode
26 run: cargo test --no-fail-fast
27 - name: Test in release mode
28 run: cargo test --no-fail-fast --release
29 - name: Check with no default features
30 run: cargo check --no-default-features
31 nightly:
32 name: nightly
33 runs-on: ubuntu-latest
34 steps:
35 - uses: actions/checkout@v4
36 - name: Install Rust
37 run: rustup update nightly
38 - name: Test in debug mode
39 run: cargo +nightly test --no-fail-fast
40 - name: Test in release mode
41 run: cargo +nightly test --no-fail-fast --release
42 - name: Check with no default features
43 run: cargo +nightly check --no-default-features
44 - name: Build benches
45 run: cargo +nightly build --benches --all
46 msrv:
47 name: msrv
48 runs-on: ubuntu-latest
49 steps:
50 - uses: actions/checkout@v4
51 - name: Get MSRV from Cargo.toml
52 id: msrv
53 run: echo "version=$(grep '^rust-version' Cargo.toml | sed 's/rust-version = "\(.*\)"/\1/')" >> $GITHUB_OUTPUT
54 - name: Install Rust
55 run: rustup update ${{ steps.msrv.outputs.version }} && rustup default ${{ steps.msrv.outputs.version }}
56 - name: Test in debug mode
57 run: cargo test --no-fail-fast
58 - name: Test in release mode
59 run: cargo test --no-fail-fast --release
60 - name: Check with no default features
61 run: cargo check --no-default-features
62 asan:
63 name: asan
64 runs-on: ubuntu-latest
65 steps:
66 - uses: actions/checkout@v4
67 - name: Install Rust
68 run: rustup update nightly --no-self-update
69 - name: Run address sanitizer
70 run: RUSTFLAGS="-Z sanitizer=address" cargo +nightly test --lib --target x86_64-unknown-linux-gnu
71 env:
72 ASAN_OPTIONS: "detect_odr_violation=0 detect_leaks=0"
73 RUST_BACKTRACE: "1"
74 cross-test:
75 name: cross-test
76 runs-on: ubuntu-latest
77 strategy:
78 matrix:
79 target:
80 - i686-unknown-linux-gnu
81 - aarch64-unknown-linux-gnu
82 steps:
83 - uses: actions/checkout@v4
84 - name: Install Rust
85 run: rustup update --no-self-update
86 - name: Install Cross
87 run: cargo install --force cross
88 - name: Test
89 run: cross test --target=${{ matrix.target }}
90 - name: Check with no default features
91 run: cross check --target=${{ matrix.target }} --no-default-features
92 cross-check:
93 name: cross-check
94 runs-on: ubuntu-latest
95 strategy:
96 matrix:
97 target:
98 - wasm32-unknown-unknown
99 steps:
100 - uses: actions/checkout@v4
101 - name: Install Rust
102 run: rustup update --no-self-update
103 - name: Add target
104 run: rustup target add ${{ matrix.target }}
105 - name: Check
106 run: cargo check --target=${{ matrix.target }}
107 - name: Check with no default features
108 run: cargo check --target=${{ matrix.target }} --no-default-features
109 cross-check-nightly-feature:
110 name: cross-check-nightly-features
111 runs-on: ubuntu-latest
112 strategy:
113 matrix:
114 target:
115 - aarch64-unknown-linux-gnu
116 steps:
117 - uses: actions/checkout@v4
118 - name: Install Rust
119 run: rustup update nightly --no-self-update && rustup default nightly
120 - name: Add target
121 run: rustup target add ${{ matrix.target }}
122 - name: Check
123 run: cargo check --target=${{ matrix.target }} --features=nightly
124 - name: Check with no default features
125 run: cargo check --target=${{ matrix.target }} --no-default-features --features=nightly