Skip to content

Commit e84a233

Browse files
committed
Try using cargo binstall for mdbook
1 parent a1b8c5a commit e84a233

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/docs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@ jobs:
2525
needs: [changes]
2626
if: ${{ !contains(needs.changes.outputs.docs-changed, '[]') }}
2727
runs-on: ubuntu-latest
28-
timeout-minutes: 10
28+
timeout-minutes: 3
2929
concurrency:
3030
group: ${{ github.workflow }}-${{ github.ref }}
3131

3232
steps:
3333
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434

35-
- uses: taiki-e/cache-cargo-install-action@4d586f211d9b0bca9e7b59e57e2a0febf36c0929 # v2.1.1
36-
with:
37-
tool: "mdbook@0.4.48"
35+
- name: Install cargo-binstall
36+
uses: cargo-bins/cargo-binstall@8aac5aa2bf0dfaa2863eccad9f43c68fe40e5ec8 # v1.14.1
3837

39-
- uses: taiki-e/cache-cargo-install-action@4d586f211d9b0bca9e7b59e57e2a0febf36c0929 # v2.1.1
40-
with:
41-
tool: "mdbook-alerts@0.7.0"
38+
- name: Install mdbook tools
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4241

43-
- uses: taiki-e/cache-cargo-install-action@4d586f211d9b0bca9e7b59e57e2a0febf36c0929 # v2.1.1
44-
with:
45-
tool: "mdbook-linkcheck@0.7.7"
42+
run: |
43+
cargo binstall --no-confirm mdbook@0.4.48
44+
cargo binstall --no-confirm mdbook-alerts@0.7.0
45+
cargo binstall --no-confirm mdbook-linkcheck@0.7.7
4646
4747
- name: Build mdbook
4848
working-directory: ./docs

0 commit comments

Comments
 (0)