Skip to content

Commit fd0443a

Browse files
committed
simplify CI pipeline
1 parent bf140f4 commit fd0443a

File tree

1 file changed

+6
-57
lines changed

1 file changed

+6
-57
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,31 @@ on:
66
- "docs/**"
77
- "**.md"
88
- "docs/vercel/**"
9-
- ".gitpod.yml"
109
pull_request:
1110
branches: [main]
1211
paths-ignore:
1312
- "docs/**"
1413
- "**.md"
1514
- "docs/vercel/**"
16-
- ".gitpod.yml"
1715
env:
1816
CARGO_TERM_COLOR: always
1917

2018
jobs:
21-
build:
22-
runs-on: ${{ matrix.os }}
19+
CI:
2320
strategy:
2421
matrix:
2522
os: [ubuntu-latest, windows-latest, macOS-latest]
26-
rust: [stable, nightly]
23+
runs-on: ${{ matrix.os }}
2724

2825
steps:
29-
- name: Checkout repository
26+
- name: Checkout
3027
uses: actions/checkout@v4
3128

3229
- name: Install Rust
33-
uses: dtolnay/rust-toolchain@v1
34-
with:
35-
toolchain: ${{ matrix.rust }}
36-
37-
- name: Cache
38-
uses: Swatinem/rust-cache@v2
30+
uses: actions-rust-lang/setup-rust-toolchain@v1
3931

40-
- name: Build Debug
41-
run: |
42-
rustc --version
43-
cargo build --features=fail-on-deprecated
32+
- name: Build
33+
run: cargo build --features=fail-on-deprecated
4434

4535
- name: Run tests
4636
run: cargo test
@@ -50,44 +40,3 @@ jobs:
5040

5141
- name: Run onefetch (with commitgraph)
5242
run: git commit-graph write --no-progress --reachable && cargo run
53-
54-
lint:
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Checkout repository
58-
uses: actions/checkout@v4
59-
60-
- name: Install Rust
61-
uses: dtolnay/rust-toolchain@v1
62-
with:
63-
toolchain: stable
64-
components: clippy,rustfmt
65-
66-
- name: Run rustfmt
67-
run: cargo fmt -- --check
68-
69-
- name: Run clippy
70-
run: cargo clippy
71-
72-
coverage:
73-
runs-on: ubuntu-latest
74-
steps:
75-
- name: Checkout repository
76-
uses: actions/checkout@v4
77-
78-
- name: Install Rust
79-
uses: dtolnay/rust-toolchain@v1
80-
with:
81-
toolchain: stable
82-
83-
- name: Cache
84-
uses: Swatinem/rust-cache@v2
85-
86-
- name: Install cargo-tarpaulin
87-
run: cargo install cargo-tarpaulin
88-
89-
- name: Coverage with tarpaulin
90-
run: cargo tarpaulin --workspace --out lcov
91-
92-
- name: Upload to codecov.io
93-
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)