Skip to content

Commit 3310ed7

Browse files
committed
Add initial GitHub Actions CI builds
1 parent 71e1f8f commit 3310ed7

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
build-latest:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
toolchain: stable
22+
components: clippy, rustfmt
23+
- name: Build
24+
run: cargo build
25+
- name: Clippy
26+
run: cargo clippy
27+
- name: Formatting
28+
run: cargo fmt -- --check
29+
- name: Docs
30+
run: cargo doc
31+
- name: Tests
32+
run: cargo test
33+
34+
build-msrv:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: dtolnay/rust-toolchain@stable
39+
with:
40+
toolchain: 1.75.0
41+
components: clippy, rustfmt
42+
- name: Build
43+
run: cargo build
44+
- name: Clippy
45+
run: cargo clippy
46+
- name: Formatting
47+
run: cargo fmt -- --check
48+
- name: Docs
49+
run: cargo doc
50+
- name: Tests
51+
run: cargo test
52+
53+
links:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
- name: Links
58+
id: lychee
59+
uses: lycheeverse/lychee-action@v2

0 commit comments

Comments
 (0)