File tree 2 files changed +35
-2
lines changed
2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,25 @@ name: Docs
2
2
3
3
on : [push, workflow_dispatch]
4
4
5
+ env :
6
+ CARGO_TERM_COLOR : always
7
+
5
8
jobs :
9
+ cache-deps :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - run : rustup update --no-self-update
14
+ - name : Cache .cargo locked resources
15
+ uses : actions/cache@v4
16
+ with :
17
+ path : ~/.cargo
18
+ key : ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
19
+ - run : cargo fetch
20
+
6
21
build-sphinx :
7
22
runs-on : ubuntu-latest
8
- needs : [build-rustdoc ]
23
+ needs : [cache-deps ]
9
24
steps :
10
25
- uses : actions/checkout@v4
11
26
- uses : actions/setup-python@v5
42
57
43
58
build-rustdoc :
44
59
runs-on : ubuntu-latest
60
+ needs : [cache-deps]
45
61
steps :
46
62
- uses : actions/checkout@v4
47
63
- run : rustup update --no-self-update
Original file line number Diff line number Diff line change 19
19
CARGO_TERM_COLOR : always
20
20
21
21
jobs :
22
+ cache-deps :
23
+ runs-on : ubuntu-latest
24
+ strategy :
25
+ fail-fast : false
26
+ matrix :
27
+ os : ['windows-latest', ubuntu-latest]
28
+ steps :
29
+ - run : rustup update --no-self-update
30
+ - uses : actions/checkout@v4
31
+ - name : Cache .cargo locked resources
32
+ uses : actions/cache@v4
33
+ with :
34
+ path : ~/.cargo
35
+ key : ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
36
+ - run : cargo fetch
37
+
22
38
test :
39
+ needs : [cache-deps]
23
40
name : test ${{ matrix.os }} w/ clang v${{ matrix.version }}
24
41
strategy :
25
42
fail-fast : false
88
105
clang-tools --install ${{ matrix.version }}
89
106
90
107
- name : Cache .cargo locked resources
91
- uses : actions/cache@v4
108
+ uses : actions/cache/restore @v4
92
109
with :
93
110
path : ~/.cargo
94
111
key : ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
You can’t perform that action at this time.
0 commit comments