Skip to content

Commit 7d47b29

Browse files
committed
ci: Update CI.yaml
1 parent 027c7a4 commit 7d47b29

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/CI.yaml

+37-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,42 @@ on:
1414
- cron: "0 0 * * 0"
1515

1616
jobs:
17+
check:
18+
name: Check
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
target:
23+
- x86_64-unknown-linux-gnu
24+
- aarch64-apple-darwin
25+
- x86_64-pc-windows-msvc
26+
toolchain:
27+
- 1.74.0 # MSRV
28+
- stable
29+
include:
30+
- target: x86_64-unknown-linux-gnu
31+
os: ubuntu-22.04
32+
- target: aarch64-apple-darwin
33+
os: macos-14
34+
- target: x86_64-pc-windows-msvc
35+
os: windows-2022
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
- name: Setup Rust toolchain
40+
uses: dtolnay/rust-toolchain@v1
41+
with:
42+
toolchain: ${{ matrix.toolchain }}
43+
targets: ${{ matrix.target }}
44+
- name: Cache build artifacts
45+
uses: Swatinem/rust-cache@v2.7.5
46+
with:
47+
key: ${{ matrix.target }}
48+
- name: Check a package
49+
run: cargo check --target ${{ matrix.target }}
50+
- name: Check a package (no default features)
51+
run: cargo check --target ${{ matrix.target }} --no-default-features
52+
1753
test:
1854
name: Test
1955
runs-on: ${{ matrix.os }}
@@ -24,7 +60,7 @@ jobs:
2460
- aarch64-apple-darwin
2561
- x86_64-pc-windows-msvc
2662
toolchain:
27-
- 1.74.0 # MSRV
63+
- 1.74.0
2864
- stable
2965
include:
3066
- target: x86_64-unknown-linux-gnu

0 commit comments

Comments
 (0)