Debian Codegraph @

debian/missing-sources/moxcms/.github/workflows/build_push.yml

raw symbols SCIP
1 name: Build
2
3 concurrency:
4 group: ${{ github.workflow }}-${{ github.ref }}
5 cancel-in-progress: true
6
7 on:
8 push:
9 branches:
10 - 'master'
11 - '!ci_test_*'
12 tags-ignore:
13 - '*'
14 pull_request:
15 branches:
16 - 'master'
17
18 jobs:
19 build:
20 name: Build
21 runs-on: ubuntu-latest
22 strategy:
23 fail-fast: false
24 matrix:
25 rust: [ "1.85.0", stable ]
26 steps:
27 - uses: actions/checkout@v4
28 - uses: dtolnay/rust-toolchain@stable
29 with:
30 toolchain: ${{ matrix.rust }}
31 - run: rustup target add aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu i686-unknown-linux-gnu powerpc-unknown-linux-gnu wasm32-unknown-unknown
32 - run: RUSTFLAGS="-C target-feature=+neon" cargo build --target aarch64-unknown-linux-gnu
33 - run: RUSTFLAGS="-C target-feature=+neon" cargo build --target aarch64-unknown-linux-gnu --no-default-features
34 - run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target i686-unknown-linux-gnu
35 - run: cargo build --target powerpc-unknown-linux-gnu
36 - run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target x86_64-unknown-linux-gnu
37 - run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target x86_64-unknown-linux-gnu --no-default-features --features avx
38 - run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target x86_64-unknown-linux-gnu --no-default-features --features sse
39 - run: RUSTFLAGS="-C target-feature=+avx2" cargo +nightly build --target x86_64-unknown-linux-gnu --no-default-features --features avx,avx512
40 - run: RUSTFLAGS="-C target-feature=+simd128" cargo build --target wasm32-unknown-unknown
41 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features avx_shaper_paths
42 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features avx_shaper_optimized_paths
43 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features avx_shaper_fixed_point_paths
44 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features avx_luts
45 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features avx_shaper_fixed_point_paths,in_place
46 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features sse_shaper_paths
47 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features sse_shaper_optimized_paths
48 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features sse_shaper_fixed_point_paths
49 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features sse_luts
50 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features sse_shaper_fixed_point_paths,in_place
51 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features neon_shaper_paths
52 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features neon_shaper_optimized_paths
53 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features neon_shaper_fixed_point_paths
54 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features neon_luts
55 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features neon_shaper_fixed_point_paths,in_place
56 - run: cargo build --target x86_64-unknown-linux-gnu --no-default-features --features in_place
57 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features in_place
58 - run: cargo build --target aarch64-unknown-linux-gnu --no-default-features --features any_to_any
59
60 tests_arm:
61 name: Tests
62 runs-on: macos-latest
63 steps:
64 - uses: actions/checkout@v4
65 - uses: dtolnay/rust-toolchain@stable
66 - run: cargo test --no-default-features
67 - run: cargo test --features neon_shaper_paths
68 - run: cargo test --features neon_shaper_optimized_paths
69 - run: cargo test --features neon_shaper_fixed_point_paths
70 - run: cargo test --features neon_luts
71 - run: cargo test --features neon_shaper_fixed_point_paths,in_place
72
73 tests_x86:
74 name: Tests
75 runs-on: ubuntu-latest
76 steps:
77 - uses: actions/checkout@v4
78 - uses: dtolnay/rust-toolchain@stable
79 - run: cargo test --no-default-features
80 - run: cargo test --features avx_shaper_paths
81 - run: cargo test --features avx_shaper_optimized_paths
82 - run: cargo test --features avx_shaper_fixed_point_paths
83 - run: cargo test --features avx_luts
84 - run: cargo test --features avx_shaper_fixed_point_paths,in_place
85 - run: cargo test --features sse_shaper_paths
86 - run: cargo test --features sse_shaper_optimized_paths
87 - run: cargo test --features sse_shaper_fixed_point_paths
88 - run: cargo test --features sse_luts
89 - run: cargo test --features sse_shaper_fixed_point_paths,in_place
90 - run: cargo test --features extended_range
91
92 clippy_x86:
93 name: Clippy x86 Stable
94 runs-on: ubuntu-latest
95 steps:
96 - uses: actions/checkout@v4
97 - uses: dtolnay/rust-toolchain@stable
98 - run: cargo clippy --no-default-features -- -D warnings
99 - run: cargo clippy --features avx_shaper_paths -- -D warnings
100 - run: cargo clippy --features avx_shaper_optimized_paths -- -D warnings
101 - run: cargo clippy --features avx_shaper_fixed_point_paths -- -D warnings
102 - run: cargo clippy --features avx_luts -- -D warnings
103 - run: cargo clippy --features avx_shaper_fixed_point_paths,in_place -- -D warnings
104 - run: cargo clippy --features sse_shaper_paths -- -D warnings
105 - run: cargo clippy --features sse_shaper_optimized_paths -- -D warnings
106 - run: cargo clippy --features sse_shaper_fixed_point_paths -- -D warnings
107 - run: cargo clippy --features sse_luts -- -D warnings
108 - run: cargo clippy --features sse_shaper_fixed_point_paths,in_place -- -D warnings
109 - run: cargo clippy --features any_to_any -- -D warnings
110 - run: cargo clippy --features extended_range -- -D warnings
111
112 clippy_x86_nightly:
113 name: Clippy x86 Nightly
114 runs-on: ubuntu-latest
115 steps:
116 - uses: actions/checkout@v4
117 - uses: dtolnay/rust-toolchain@nightly
118 - run: rustup component add clippy
119 - run: cargo clippy --no-default-features -- -D warnings
120 - run: cargo clippy --features avx_shaper_paths -- -D warnings
121 - run: cargo clippy --features avx_shaper_optimized_paths -- -D warnings
122 - run: cargo clippy --features avx_shaper_fixed_point_paths -- -D warnings
123 - run: cargo clippy --features avx_luts -- -D warnings
124 - run: cargo clippy --features avx_shaper_fixed_point_paths,in_place -- -D warnings
125 - run: cargo clippy --features sse_shaper_paths -- -D warnings
126 - run: cargo clippy --features sse_shaper_optimized_paths -- -D warnings
127 - run: cargo clippy --features sse_shaper_fixed_point_paths -- -D warnings
128 - run: cargo clippy --features sse_luts -- -D warnings
129 - run: cargo clippy --features sse_shaper_fixed_point_paths,in_place -- -D warnings
130
131 clippy_arm:
132 name: Clippy ARM
133 runs-on: macos-latest
134 steps:
135 - uses: actions/checkout@v4
136 - uses: dtolnay/rust-toolchain@stable
137 - run: cargo clippy --no-default-features -- -D warnings
138 - run: cargo clippy --features neon_shaper_paths -- -D warnings
139 - run: cargo clippy --features neon_shaper_optimized_paths -- -D warnings
140 - run: cargo clippy --features neon_shaper_fixed_point_paths -- -D warnings
141 - run: cargo clippy --features neon_luts -- -D warnings
142 - run: cargo clippy --features neon_shaper_fixed_point_paths,in_place -- -D warnings
143 - run: cargo clippy --features any_to_any -- -D warnings
144 - run: cargo clippy --features extended_range -- -D warnings
145
146 fuzz_arm:
147 name: Fuzzing ARM
148 runs-on: macos-latest
149 strategy:
150 matrix:
151 feature: [ neon ]
152 steps:
153 - uses: actions/checkout@v4
154 - uses: dtolnay/rust-toolchain@nightly
155 - run: cargo install cargo-fuzz
156 - run: cargo fuzz run unsafe --no-default-features --features ${{ matrix.feature }} -- -max_total_time=16
157 - run: cargo fuzz run lut --no-default-features --features ${{ matrix.feature }} -- -max_total_time=16
158
159 fuzz_x86_64:
160 name: Fuzzing x86_64
161 runs-on: ubuntu-latest
162 strategy:
163 matrix:
164 feature: [ sse, avx ]
165 steps:
166 - uses: actions/checkout@v4
167 - uses: dtolnay/rust-toolchain@nightly
168 - run: cargo install cargo-fuzz
169 - run: cargo fuzz run unsafe --no-default-features --features ${{ matrix.feature }} -- -max_total_time=16
170 - run: cargo fuzz run lut --no-default-features --features ${{ matrix.feature }} -- -max_total_time=16
171
172 fuzz_reader:
173 name: Fuzzing Reader
174 runs-on: ubuntu-latest
175 steps:
176 - uses: actions/checkout@v4
177 - uses: dtolnay/rust-toolchain@nightly
178 - run: cargo install cargo-fuzz
179 - run: cargo fuzz run safe_read --no-default-features -- -max_total_time=20 -max_len=512000
180 - run: cargo fuzz run safe_read_create --no-default-features -- -max_total_time=20 -max_len=512000