Skip to content

Commit 21723b5

Browse files
committed
Change CI trigger to PR (forks), add build-book job
1 parent fff6ec7 commit 21723b5

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: ci-push
1+
name: ci-pr
22
on:
3-
push:
3+
pull_request:
44
branches-ignore:
55
- staging
66
- production
@@ -113,3 +113,20 @@ jobs:
113113
run: cd clang && ctest -V -C Debug
114114
- name: test release
115115
run: cd clang && ctest -V -C Release
116+
build-book:
117+
runs-on: ubuntu-latest
118+
steps:
119+
- uses: actions/checkout@v4
120+
with:
121+
fetch-depth: 0
122+
- name: init
123+
run: |
124+
url="https://github.com/rust-lang/mdBook/releases/download/v0.4.47/mdbook-v0.4.47-x86_64-unknown-linux-gnu.tar.gz"
125+
mkdir mdbook
126+
curl -sSL $url | tar -xz --directory=./mdbook
127+
echo `pwd`/mdbook >> $GITHUB_PATH
128+
- name: build book
129+
run: |
130+
cd guide
131+
mdbook build
132+
ls book

0 commit comments

Comments
 (0)