ci: install mdbook-linkcheck from a pre-build binary
@@ -11,10 +11,13 @@ jobs:
- uses: actions/checkout@v2
- name: Install linkcheck
- uses: actions-rs/cargo@v1
- with:
- command: install
- args: mdbook-linkcheck
+ run: |
+ mkdir $GITHUB_WORKSPACE/mdbook-linkcheck
+ cd $GITHUB_WORKSPACE/mdbook-linkcheck
+ gh release --repo Michael-F-Bryan/mdbook-linkcheck download --pattern '*x86_64-unknown-linux-gnu.tar.gz'
+ tar -xzf *x86_64-unknown-linux-gnu.tar.gz
+ rm *x86_64-unknown-linux-gnu.tar.gz
+ echo $GITHUB_WORKSPACE/mdbook-linkcheck >> $GITHUB_PATH
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
