Skip to content

Commit

Permalink
ci: speed up installation of tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner committed Jun 6, 2024
1 parent 27c7274 commit d3c03c7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/actions/build-mdbook/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ description: Generate static site from markdown files through mdBook
runs:
using: "composite"
steps:
- name: Create bin directory and add to $PATH
run: |
mkdir bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
shell: bash
- name: Install mdbook
run: cargo install mdbook --version 0.4.40
run: |
url="https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz"
curl -sSL "$url" | tar -xz --directory=bin
shell: bash
- name: Install mdbook-linkcheck
run: cargo install mdbook-linkcheck --version 0.7.7
run: |
url="https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip"
curl -sSL "$url" -o mdbook-linkcheck.zip
unzip "$_" -d bin
chmod +x bin/mdbook-linkcheck
shell: bash
- name: Build the book and check for broken links
run: mdbook build
Expand Down

0 comments on commit d3c03c7

Please sign in to comment.