Skip to content

Commit 41fca68

Browse files
committed
Use taiki-e/install-action for installing some tools in CI
1 parent 2605d3a commit 41fca68

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
version: 0.13.0
6262

6363
- name: Install cargo-zigbuild
64-
run: curl -L https://github.com/rust-cross/cargo-zigbuild/releases/download/v0.19.1/cargo-zigbuild-v0.19.1.x86_64-unknown-linux-musl.tar.gz | tar -z -x -C /usr/local/bin
64+
uses: taiki-e/install-action@v2
65+
with:
66+
tool: cargo-zigbuild
6567

6668
- name: Install frontend Node
6769
uses: actions/[email protected]

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ jobs:
263263
rustup default stable
264264
265265
- name: Install nextest
266-
uses: taiki-e/install-action@nextest
266+
uses: taiki-e/install-action@v2
267+
with:
268+
tool: cargo-nextest
267269

268270
- name: Setup sccache
269271
uses: mozilla-actions/[email protected]
@@ -313,7 +315,9 @@ jobs:
313315

314316
- run: mkdir -p ~/.cargo/bin
315317
- name: Install nextest
316-
uses: taiki-e/install-action@nextest
318+
uses: taiki-e/install-action@v2
319+
with:
320+
tool: cargo-nextest
317321

318322
- name: Install Node
319323
uses: actions/[email protected]

.github/workflows/coverage.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ jobs:
141141
- name: Setup sccache
142142
uses: mozilla-actions/[email protected]
143143

144-
- name: Download grcov
145-
run: |
146-
mkdir -p "${HOME}/.local/bin"
147-
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.19/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
148-
echo "$HOME/.local/bin" >> $GITHUB_PATH
144+
- name: Install grcov
145+
uses: taiki-e/install-action@v2
146+
with:
147+
tool: grcov
149148

150149
- name: Run test suite with profiling enabled
151150
run: |

.github/workflows/docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
- name: Setup sccache
3131
uses: mozilla-actions/[email protected]
3232

33-
- name: Setup mdBook
34-
uses: peaceiris/actions-mdbook@v2.0.0
33+
- name: Install mdbook
34+
uses: taiki-e/install-action@v2
3535
with:
36-
mdbook-version: '0.4.37'
36+
tool: mdbook
3737

3838
- name: Install Node
3939
uses: actions/[email protected]

0 commit comments

Comments
 (0)