Update main.yml

This commit is contained in:
KaiserY 2022-02-06 16:46:31 +08:00 committed by GitHub
parent f5a85c1355
commit 66cece121e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,12 +20,12 @@ jobs:
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install 1.52 -c rust-docs
rustup default 1.52
rustup toolchain install 1.58 -c rust-docs
rustup default 1.58
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
- name: Report versions
run: |
@ -41,4 +41,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
force_orphan: true
enable_jekyll: true
enable_jekyll: true