Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 19, 2024
1 parent 3d03577 commit 3a8d476
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,33 @@ jobs:
repository: google/comprehensive-rust
path: 'comprehensive-rust'

- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install formatting dependencies
run: |
sudo apt update
sudo apt install gettext yapf3
# - name: Install latest nightly
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy

- name: Update rustup
run: rustup self update
# - name: Update rustup
# run: rustup self update

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: llvm-tools-preview

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install nightly -c rust-docs
rustup default nightly
# - name: Install Rust
# run: |
# rustup set profile minimal
# rustup toolchain install nightly -c rust-docs
# rustup default nightly

- name: Install mdbook
run: |
Expand Down Expand Up @@ -120,10 +131,14 @@ jobs:
env:
MDBOOK_BOOK__LANGUAGE: zh-CN
run: |
cargo install mdbook-svgbob
cargo install mdbook-i18n-helpers
cargo install --path mdbook-exerciser
cargo install --path mdbook-course
cargo clean
cargo build
cargo install mdbook --locked --version 0.4.36
cargo install mdbook-svgbob --locked --version 0.2.1
cargo install mdbook-i18n-helpers --locked --version 0.3.1
cargo install --path mdbook-exerciser --locked
cargo install --path mdbook-course --locked
mdbook build -d book/zh-CN
rm -rf .git
cp -rp ./book/zh-CN/html ../dist/comprehensive-rust
Expand Down

0 comments on commit 3a8d476

Please sign in to comment.