Debian Codegraph @

.cargo/vendor/moxcms/.github/workflows/build_push.yml

raw
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
42 tests_arm:
43 name: Tests
44 strategy:
45 matrix:
46 features: [ "", neon ]
47 runs-on: macos-latest
48 steps:
49 - uses: actions/checkout@v4
50 - uses: dtolnay/rust-toolchain@stable
51 - run: cargo test --no-default-features --features "${{ matrix.features }}"
52
53 tests_x86:
54 name: Tests
55 strategy:
56 matrix:
57 features: [ "", sse, avx ]
58 runs-on: ubuntu-latest
59 steps:
60 - uses: actions/checkout@v4
61 - uses: dtolnay/rust-toolchain@stable
62 - run: cargo test --no-default-features --features "${{ matrix.features }}"
63
64 clippy_x86:
65 name: Clippy x86 Stable
66 runs-on: ubuntu-latest
67 steps:
68 - uses: actions/checkout@v4
69 - uses: dtolnay/rust-toolchain@stable
70 - run: cargo clippy --features avx,sse,neon,options -- -D warnings
71
72 clippy_x86_nightly:
73 name: Clippy x86 Nightly
74 runs-on: ubuntu-latest
75 steps:
76 - uses: actions/checkout@v4
77 - uses: dtolnay/rust-toolchain@nightly
78 - run: rustup component add clippy
79 - run: cargo clippy --all-features -- -D warnings
80
81 clippy_arm:
82 name: Clippy ARM
83 runs-on: macos-latest
84 steps:
85 - uses: actions/checkout@v4
86 - uses: dtolnay/rust-toolchain@stable
87 - run: cargo clippy -- -D warnings
88
89 fuzz_arm:
90 name: Fuzzing ARM
91 runs-on: macos-latest
92 strategy:
93 matrix:
94 feature: [ neon ]
95 steps:
96 - uses: actions/checkout@v4
97 - uses: dtolnay/rust-toolchain@nightly
98 - run: cargo install cargo-fuzz
99 - run: cargo fuzz run unsafe --no-default-features --features ${{ matrix.feature }} -- -max_total_time=10
100 - run: cargo fuzz run lut --no-default-features --features ${{ matrix.feature }} -- -max_total_time=12
101
102 fuzz_x86_64:
103 name: Fuzzing x86_64
104 runs-on: ubuntu-latest
105 strategy:
106 matrix:
107 feature: [ sse, avx ]
108 steps:
109 - uses: actions/checkout@v4
110 - uses: dtolnay/rust-toolchain@nightly
111 - run: cargo install cargo-fuzz
112 - run: cargo fuzz run unsafe --no-default-features --features ${{ matrix.feature }} -- -max_total_time=12
113 - run: cargo fuzz run lut --no-default-features --features ${{ matrix.feature }} -- -max_total_time=12
114
115 fuzz_reader:
116 name: Fuzzing Reader
117 runs-on: ubuntu-latest
118 steps:
119 - uses: actions/checkout@v4
120 - uses: dtolnay/rust-toolchain@nightly
121 - run: cargo install cargo-fuzz
122 - run: cargo fuzz run safe_read --no-default-features -- -max_total_time=20 -max_len=512000
123 - run: cargo fuzz run safe_read_create --no-default-features -- -max_total_time=20 -max_len=512000