File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
merge_group :
5
5
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
+
6
11
jobs :
7
12
test :
8
13
name : Test
9
14
runs-on : ubuntu-latest
10
15
steps :
11
16
- 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}
12
25
- name : Update rustup
13
26
run : rustup self update
14
27
- name : Install Rust
@@ -19,13 +32,15 @@ jobs:
19
32
- name : Install mdbook
20
33
run : |
21
34
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
23
36
echo "$(pwd)/bin" >> $GITHUB_PATH
24
37
- name : Report versions
25
38
run : |
26
39
rustup --version
27
40
rustc -Vv
28
41
mdbook --version
42
+ - name : Install mdbook-spec
43
+ run : cargo install --locked mdbook-spec@${MDBOOK_SPEC_VERSION}
29
44
- name : Run tests
30
45
run : mdbook test
31
46
- name : Style checks
You can’t perform that action at this time.
0 commit comments