From d3c03c70777f06dc9c6e6d9ac6c17364f53151fe Mon Sep 17 00:00:00 2001 From: Markus Legner Date: Thu, 6 Jun 2024 14:39:54 +0200 Subject: [PATCH] ci: speed up installation of tools --- .github/actions/build-mdbook/action.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-mdbook/action.yaml b/.github/actions/build-mdbook/action.yaml index 43f1ad5a..b4df0434 100644 --- a/.github/actions/build-mdbook/action.yaml +++ b/.github/actions/build-mdbook/action.yaml @@ -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