Skip to content

Commit c62cb81

Browse files
committed
support cargox pkg@version foo
1 parent 5230cf8 commit c62cb81

File tree

10 files changed

+1869
-257
lines changed

10 files changed

+1869
-257
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ jobs:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
2020

2121
steps:
22-
- name: Checkout code
23-
uses: actions/checkout@v4
24-
25-
- name: Install Rust
26-
uses: dtolnay/rust-toolchain@stable
22+
- uses: actions/checkout@v4
23+
- uses: dtolnay/rust-toolchain@stable
2724

2825
- name: Cache cargo registry
2926
uses: actions/cache@v4
@@ -49,24 +46,30 @@ jobs:
4946
restore-keys: |
5047
${{ runner.os }}-target-
5148
52-
- name: Run tests
53-
run: cargo test
49+
- run: cargo test
5450

55-
lint:
56-
name: Lint and Format
51+
cargo-fmt:
52+
name: Lint (fmt)
5753
runs-on: ubuntu-latest
5854

5955
steps:
60-
- name: Checkout code
61-
uses: actions/checkout@v4
56+
- uses: actions/checkout@v4
57+
- uses: dtolnay/rust-toolchain@stable
58+
with:
59+
components: rustfmt
60+
- run: cargo fmt --check
6261

63-
- name: Install Rust
64-
uses: dtolnay/rust-toolchain@stable
62+
clippy:
63+
name: Lint (clippy)
64+
runs-on: ${{ matrix.os }}
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
os: [ubuntu-latest, macos-latest, windows-latest]
69+
steps:
70+
- uses: actions/checkout@v4
71+
- uses: dtolnay/rust-toolchain@stable
6572
with:
6673
components: rustfmt, clippy
67-
68-
- name: Check formatting
69-
run: cargo fmt -- --check
70-
71-
- name: Run clippy
74+
- name: clippy
7275
run: cargo clippy --all-targets --all-features -- -D warnings

0 commit comments

Comments
 (0)