Skip to content

Commit

Permalink
ci: update .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 2, 2024
1 parent 81f180b commit c83755b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:

- run: git clone https://github.com/rustlang-cn/rust-algos.git -b gh-pages rust-algos --depth 1
- run: git clone https://github.com/krahets/hello-algo.git -b gh-pages hello-algo --depth 1
- run: git clone https://github.com/chuxiuhong/chuxiuhong-rust-patterns-zh.git -b gh-pages chuxiuhong-rust-patterns-zh --depth 1

- run: cp -rp std/doc dist/std
- run: rm -rf book/.git
Expand All @@ -92,6 +93,8 @@ jobs:
- run: cp -rp rust-algos dist/rust-algos
- run: rm -rf hello-algo/.git
- run: cp -rp hello-algo dist/hello-algo
- run: rm -rf chuxiuhong-rust-patterns-zh/.git
- run: cp -rp chuxiuhong-rust-patterns-zh dist/chuxiuhong-rust-patterns-zh
- run: rm -rf rust-course/.git
- run: rm -rf rusty-book/.git
- run: rm -rf style-guide-cn/.git
Expand Down Expand Up @@ -160,13 +163,6 @@ jobs:
rm -rf .git
cp -rp ./book ../dist/rust-cookbook
- name: 📗 chuxiuhong-rust-patterns-zh
working-directory: chuxiuhong-rust-patterns-zh
run: |
mdbook build
rm -rf .git
cp -rp ./book ../dist/chuxiuhong-rust-patterns-zh
- name: 📗 cargo
working-directory: cargo
run: |
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ jobs:
repository: google/comprehensive-rust
path: 'comprehensive-rust'

- name: Checkout chuxiuhong/chuxiuhong-rust-patterns-zh code
uses: actions/checkout@v4
with:
repository: chuxiuhong/chuxiuhong-rust-patterns-zh
path: 'chuxiuhong-rust-patterns-zh'

- name: Install formatting dependencies
run: |
sudo apt update
Expand Down Expand Up @@ -76,18 +70,20 @@ jobs:

- run: git clone https://github.com/rustlang-cn/rust-algos.git -b gh-pages rust-algos --depth 1
- run: git clone https://github.com/krahets/hello-algo.git -b gh-pages hello-algo --depth 1
- run: git clone https://github.com/chuxiuhong/chuxiuhong-rust-patterns-zh.git -b gh-pages chuxiuhong-rust-patterns-zh --depth 1

- run: cp -rp std/doc dist/std
- run: rm -rf book/.git
- run: rm -rf rust-by-example-cn/.git
- run: rm -rf comprehensive-rust/.git
- run: rm -rf chuxiuhong-rust-patterns-zh/.git
- run: rm -rf quick-reference/.git
- run: cp -rp quick-reference dist/quick-reference
- run: rm -rf rust-algos/.git
- run: cp -rp rust-algos dist/rust-algos
- run: rm -rf hello-algo/.git
- run: cp -rp hello-algo dist/hello-algo
- run: rm -rf chuxiuhong-rust-patterns-zh/.git
- run: cp -rp chuxiuhong-rust-patterns-zh dist/chuxiuhong-rust-patterns-zh
- run: rm -rf rust-course/.git
- run: rm -rf rusty-book/.git
- run: rm -rf style-guide-cn/.git
Expand Down Expand Up @@ -156,13 +152,6 @@ jobs:
rm -rf .git
cp -rp ./book ../dist/rust-cookbook
- name: 📗 chuxiuhong-rust-patterns-zh
working-directory: chuxiuhong-rust-patterns-zh
run: |
mdbook build
rm -rf .git
cp -rp ./book ../dist/chuxiuhong-rust-patterns-zh
- name: 📗 cargo
working-directory: cargo
run: |
Expand Down

0 comments on commit c83755b

Please sign in to comment.