File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 33 pull_request :
44 merge_group :
55
6+ env :
7+ MDBOOK_VERSION : 0.4.40
8+ # When updating, be sure to also update rust-lang/rust.
9+ MDBOOK_SPEC_VERSION : 0.1.0
10+
611jobs :
712 test :
813 name : Test
914 runs-on : ubuntu-latest
1015 steps :
1116 - uses : actions/checkout@master
17+ - name : Cache
18+ uses : actions/cache@v4
19+ with :
20+ path : |
21+ ~/.cargo/bin/
22+ ~/.cargo/.crates.toml
23+ ~/.cargo/.crates2.json
24+ key : ms-${MDBOOK_SPEC_VERSION}
1225 - name : Update rustup
1326 run : rustup self update
1427 - name : Install Rust
@@ -19,13 +32,15 @@ jobs:
1932 - name : Install mdbook
2033 run : |
2134 mkdir bin
22- curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40 /mdbook-v0.4.40 -x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
35+ curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION} /mdbook-v${MDBOOK_VERSION} -x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
2336 echo "$(pwd)/bin" >> $GITHUB_PATH
2437 - name : Report versions
2538 run : |
2639 rustup --version
2740 rustc -Vv
2841 mdbook --version
42+ - name : Install mdbook-spec
43+ run : cargo install --locked mdbook-spec@${MDBOOK_SPEC_VERSION}
2944 - name : Run tests
3045 run : mdbook test
3146 - name : Style checks
You can’t perform that action at this time.
0 commit comments