Skip to content

Commit ede55c2

Browse files
committed
Use taiki-e/install-action for installing some tools in CI
1 parent e03aa6c commit ede55c2

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
@@ -238,7 +238,9 @@ jobs:
238238
rustup default stable
239239
240240
- name: Install nextest
241-
uses: taiki-e/install-action@nextest
241+
uses: taiki-e/install-action@v2
242+
with:
243+
tool: cargo-nextest
242244

243245
- name: Setup sccache
244246
uses: mozilla-actions/[email protected]
@@ -288,7 +290,9 @@ jobs:
288290

289291
- run: mkdir -p ~/.cargo/bin
290292
- name: Install nextest
291-
uses: taiki-e/install-action@nextest
293+
uses: taiki-e/install-action@v2
294+
with:
295+
tool: cargo-nextest
292296

293297
- name: Install Node
294298
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)