File tree Expand file tree Collapse file tree 1 file changed +31
-16
lines changed Expand file tree Collapse file tree 1 file changed +31
-16
lines changed Original file line number Diff line number Diff line change 1- name : Build and Publish
2-
3- on :
4- push :
5- branches : [ master ]
6- pull_request :
7- branches : [ master ]
1+ name : CI
2+ on : [push, pull_request]
83
94jobs :
10- build :
11-
5+ test :
6+ name : Run tests
127 runs-on : ubuntu-latest
13-
148 steps :
15- - uses : actions/checkout@v2
16-
9+ - uses : actions/checkout@master
10+
11+ - name : Update rustup
12+ run : rustup self update
13+
14+ - name : Install Rust
15+ run : |
16+ rustup set profile minimal
17+ rustup toolchain install stable -c rust-docs
18+ rustup default stable
19+
1720 - name : Install mdbook
18- run : cargo install mdbook
19-
20- - name : Build
21+ run : |
22+ mkdir bin
23+ 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
24+ echo "$(pwd)/bin" >> ${GITHUB_PATH}
25+
26+ - name : Report versions
27+ run : |
28+ rustup --version
29+ rustc -Vv
30+ mdbook --version
31+
32+ - name : Run tests
33+ run : mdbook test
34+
35+ - name : Build HTML
2136 run : mdbook build
22-
37+
2338 - name : Upload Artifact
2439 uses : actions/upload-artifact@v1
2540 with :
You can’t perform that action at this time.
0 commit comments