-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (71 loc) · 2.54 KB
/
Copy pathci.yml
File metadata and controls
83 lines (71 loc) · 2.54 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# SPDX-FileCopyrightText: Copyright © 2025 hashcatHitman
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
name: CI
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
MSRV: 1.89.0
defaults:
run:
shell: bash
jobs:
quality-control:
name: Quality Control
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- 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,must_not_suspend,multiple_supertrait_upcastable)"
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: MSRV Install
run: rustup toolchain add ${MSRV}
- name: Build
run: cargo +${MSRV} build --verbose --workspace --all-targets --all-features --locked
- name: Tests
run: cargo +${MSRV} test --verbose --workspace --all-targets --all-features --locked
- name: Doctests
run: cargo +${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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- 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