Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e2db41

Browse files
mkroeningIsaacWoods
authored andcommitted
ci: add workflow
Signed-off-by: Martin Kröning <[email protected]>
1 parent a4daebd commit 5e2db41

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
merge_group:
7+
8+
env:
9+
RUSTFLAGS: -Dwarnings
10+
RUSTDOCFLAGS: -Dwarnings
11+
12+
jobs:
13+
clippy:
14+
name: Clippy
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
- run: cargo clippy --all-features
20+
21+
doc:
22+
name: Doc
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: dtolnay/rust-toolchain@stable
27+
- run: cargo doc --all-features
28+
29+
fmt:
30+
name: Format
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dtolnay/rust-toolchain@nightly
35+
with:
36+
components: rustfmt
37+
- run: cargo fmt --all --check
38+
39+
test:
40+
name: Test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: dtolnay/rust-toolchain@stable
45+
- run: cargo test --all-features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# `pci_types`
2-
![Build Status](https://github.com/rust-osdev/pci_types/actions/workflows/build.yml/badge.svg)
2+
[![CI](https://github.com/rust-osdev/pci_types/actions/workflows/ci.yml/badge.svg)](https://github.com/rust-osdev/pci_types/actions/workflows/ci.yml)
33
[![Version](https://img.shields.io/crates/v/pci_types.svg?style=rounded-square)](https://crates.io/crates/pci_types/)
44
[![docs.rs](https://docs.rs/pci_types/badge.svg)](https://docs.rs/pci_types/)
55
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

0 commit comments

Comments
 (0)