Skip to content

Commit 6879a25

Browse files
committed
ci: Don't rebuild cargo-rdme if present
Avoids an error by cargo-install
1 parent f03a320 commit 6879a25

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,11 @@ jobs:
163163
~/.cargo/bin/cargo-rdme
164164
key: ${{ runner.os }}-binary-cargo-rdme
165165
- name: Install cargo-rdme
166+
shell: bash
166167
run: |
167-
cargo install cargo-rdme
168+
if not test -f "~/.cargo/bin/cargo-rdme"; then
169+
cargo install cargo-rdme
170+
fi
168171
- name: Run cargo-rdme
169172
run: |
170-
cargo install cargo-rdme
171173
cargo rdme --check

0 commit comments

Comments
 (0)