Skip to content

Commit f630b31

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 f630b31

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,11 @@ jobs:
153153
- uses: actions/checkout@v5
154154
- uses: dtolnay/rust-toolchain@stable
155155
with:
156+
# required by cargo-rdme
156157
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
158+
- uses: taiki-e/install-action@v2
161159
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
160+
tool: cargo-rdme
172161
- name: Run cargo-rdme
173162
run: |
174163
cargo rdme --check

0 commit comments

Comments
 (0)