-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 2.05 KB
/
Copy pathci.yml
File metadata and controls
67 lines (57 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# SPDX-FileCopyrightText: Copyright © 2025 hashcatHitman
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
MSRV: 1.89.0
jobs:
quality-control:
name: Quality Control
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Nightly Install
run: rustup toolchain add nightly && rustup component add --toolchain nightly rustfmt clippy
- name: Format Check (Nightly)
run: cargo +nightly fmt --verbose --all --check
- name: Clippy (Nightly)
run: cargo +nightly clippy --locked --workspace --all-targets --all-features -- -D warnings -Zcrate-attr=feature"(strict_provenance_lints,unqualified_local_imports)"
build-test-msrv:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Build & Test (${{ matrix.os }}) (MSRV)
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: MSRV Install
run: rustup toolchain add ${{ env.MSRV }}
- name: Build
run: cargo +${{ env.MSRV }} build --verbose --workspace --all-targets --all-features --locked
- name: Tests
run: cargo +${{ env.MSRV }} test --verbose --workspace --all-targets --all-features --locked
- name: Doctests
run: cargo +${{ env.MSRV }} test --verbose --workspace --doc --all-features --locked
build-test-nightly:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Build & Test (${{ matrix.os }}) (Nightly)
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- name: Build
run: cargo +nightly build --verbose --workspace --all-targets --all-features --locked
- name: Tests
run: cargo +nightly test --verbose --workspace --all-targets --all-features --locked
- name: Doctests
run: cargo +nightly test --verbose --workspace --doc --all-features --locked