Skip to content

Commit a3e3a2f

Browse files
committed
ci: Install cargo-rdme with taiki-e/install-action
Much better than compiling from source (even with caching)
1 parent 57f13d0 commit a3e3a2f

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,9 @@ jobs:
152152
steps:
153153
- uses: actions/checkout@v5
154154
- uses: dtolnay/rust-toolchain@stable
155+
- uses: taiki-e/install-action@v2
155156
with:
156-
components: rust-src
157-
# need to cache cargo-rdme to avoid redundant install
158-
- name: Cache Binaries
159-
id: cache-binaries
160-
uses: actions/cache@v4
161-
with:
162-
path:
163-
~/.cargo/bin/cargo-rdme
164-
key: ${{ runner.os }}-binary-cargo-rdme
165-
- name: Install cargo-rdme
166-
shell: bash
167-
# NOTE: This doesn't worry about installing updates
168-
run: |
169-
if test ! -f "$HOME/.cargo/bin/cargo-rdme"; then
170-
cargo install cargo-rdme
171-
fi
157+
tool: cargo-rdme
172158
- name: Run cargo-rdme
173159
run: |
174160
cargo rdme --check

0 commit comments

Comments
 (0)