-
Notifications
You must be signed in to change notification settings - Fork 37
79 lines (70 loc) · 1.96 KB
/
ci.yml
File metadata and controls
79 lines (70 loc) · 1.96 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
name: CI
permissions:
contents: read
on:
push:
pull_request:
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
CI: 1
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly, 1.70.0]
steps:
- uses: actions/checkout@v6
- run: rustup toolchain install ${{ matrix.rust }} --profile minimal
- run: cargo +${{ matrix.rust }} check --all-targets --all-features
- run: cargo +${{ matrix.rust }} test
lint:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v6
- run: rustup toolchain install stable --profile minimal --component rustfmt,clippy
- run: cargo fmt -- --check
- run: cargo clippy --all-targets --all-features
- run: cargo doc --no-deps --all-features
semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
replay:
strategy:
matrix:
include:
- name: diffy
repo_url: ''
commits: '0'
- name: golang/go
repo_url: https://github.com/golang/go
commits: '200'
- name: git/git
repo_url: https://github.com/git/git
commits: '100'
- name: rust-lang/rust
repo_url: https://github.com/rust-lang/rust
commits: '30'
- name: torvalds/linux
repo_url: https://github.com/torvalds/linux
commits: '30'
- name: llvm/llvm-project
repo_url: https://github.com/llvm/llvm-project
commits: '30'
name: replay (${{ matrix.name }})
uses: ./.github/workflows/replay.yml
with:
name: ${{ matrix.name }}
repo_url: ${{ matrix.repo_url }}
commits: ${{ matrix.commits }}