Skip to content

Commit

Permalink
Use taiki-e/install-action for installing some tools in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jan 6, 2025
1 parent e03aa6c commit ede55c2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
version: 0.13.0

- name: Install cargo-zigbuild
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
uses: taiki-e/install-action@v2
with:
tool: cargo-zigbuild

- name: Install frontend Node
uses: actions/[email protected]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ jobs:
rustup default stable
- name: Install nextest
uses: taiki-e/install-action@nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest

- name: Setup sccache
uses: mozilla-actions/[email protected]
Expand Down Expand Up @@ -288,7 +290,9 @@ jobs:

- run: mkdir -p ~/.cargo/bin
- name: Install nextest
uses: taiki-e/install-action@nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest

- name: Install Node
uses: actions/[email protected]
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,10 @@ jobs:
- name: Setup sccache
uses: mozilla-actions/[email protected]

- name: Download grcov
run: |
mkdir -p "${HOME}/.local/bin"
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"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install grcov
uses: taiki-e/install-action@v2
with:
tool: grcov

- name: Run test suite with profiling enabled
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Setup sccache
uses: mozilla-actions/[email protected]

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

- name: Install Node
uses: actions/[email protected]
Expand Down

0 comments on commit ede55c2

Please sign in to comment.