Skip to content

Commit 3862b01

Browse files
committed
Auto merge of #12024 - weihanglo:ci, r=epage
CI: use `-p` to specify workspace members instead of `--manifest-path`
2 parents 1c14e10 + 632ec43 commit 3862b01

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- run: rustup update stable && rustup default stable
2525
- run: rustup component add rustfmt
2626
- run: cargo fmt --all --check
27-
- run: cargo fmt --all --check --manifest-path crates/resolver-tests/Cargo.toml
2827

2928
# Ensure there are no clippy warnings
3029
clippy:
@@ -152,7 +151,7 @@ jobs:
152151
steps:
153152
- uses: actions/checkout@v3
154153
- run: rustup update stable && rustup default stable
155-
- run: cargo test --manifest-path crates/resolver-tests/Cargo.toml
154+
- run: cargo test -p resolver-tests
156155

157156
test_gitoxide:
158157
runs-on: ubuntu-latest

src/doc/build-man.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ OPTIONS="--url https://doc.rust-lang.org/cargo/commands/ \
1818
--man rustc:1=https://doc.rust-lang.org/rustc/index.html \
1919
--man rustdoc:1=https://doc.rust-lang.org/rustdoc/index.html"
2020

21-
cargo run --manifest-path=../../crates/mdman/Cargo.toml -- \
21+
cargo run -p mdman -- \
2222
-t md -o src/commands man/cargo*.md \
2323
$OPTIONS
2424

25-
cargo run --manifest-path=../../crates/mdman/Cargo.toml -- \
25+
cargo run -p mdman -- \
2626
-t txt -o man/generated_txt man/cargo*.md \
2727
$OPTIONS
2828

29-
cargo run --manifest-path=../../crates/mdman/Cargo.toml -- \
29+
cargo run -p mdman -- \
3030
-t man -o ../etc/man man/cargo*.md \
3131
$OPTIONS

0 commit comments

Comments
 (0)