Skip to content

Commit 6e47dbe

Browse files
committed
feat: use cargo-no-dev-deps
1 parent 48ed6f6 commit 6e47dbe

2 files changed

Lines changed: 47 additions & 6 deletions

File tree

.github/workflows/ci_check.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
strategy:
2222
matrix:
2323
os: [ubuntu-22.04, windows-latest, macos-latest]
24-
lock: [minimal, auto]
2524
steps:
2625
- uses: actions/checkout@v4
2726
- name: Setup Rust Toolchain
@@ -40,11 +39,7 @@ jobs:
4039
- name: Check clippy
4140
shell: bash
4241
run: |
43-
ARGS=()
44-
if [[ "${{ matrix.lock }}" == "minimal" ]]; then
45-
ARGS+=("-Z" "minimal-versions")
46-
fi
47-
cargo clippy "${ARGS[@]}" --all-features --all-targets -- -Dwarnings
42+
cargo clippy --all-features --all-targets -- -Dwarnings
4843
- name: Check Docs
4944
run: |
5045
cargo doc --workspace --all-features --no-deps
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
13+
cancel-in-progress: true
14+
15+
env:
16+
RUST_BACKTRACE: 1
17+
18+
jobs:
19+
check:
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
matrix:
23+
os: [ubuntu-22.04, windows-latest, macos-latest]
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Setup Rust Toolchain
27+
run: |
28+
rustup default nightly
29+
rustup component add clippy
30+
- uses: taiki-e/install-action@cargo-no-dev-deps
31+
- uses: actions/setup-go@v4
32+
with:
33+
go-version: '>=1.18'
34+
- name: Install NASM on Windows
35+
if: runner.os == 'Windows'
36+
uses: ilammy/setup-nasm@v1
37+
- name: Install ninja-build tool on Windows
38+
if: runner.os == 'Windows'
39+
uses: seanmiddleditch/gha-setup-ninja@v4
40+
- name: Check clippy
41+
shell: bash
42+
run: |
43+
cargo no-dev-deps -Zminimal-versions clippy --all-features --lib
44+
- name: Check Docs
45+
run: |
46+
cargo no-dev-deps -Zminimal-versions doc --workspace --all-features --no-deps

0 commit comments

Comments
 (0)