File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 9393 command : check
9494 args : --target=${{ matrix.target }} --no-default-features --features=${{ matrix.features }}
9595
96+ doc :
97+ name : doc
98+ runs-on : ubuntu-latest
99+ strategy :
100+ matrix :
101+ target :
102+ - x86_64-unknown-linux-gnu
103+ - thumbv7m-none-eabi
104+ features :
105+ - " "
106+ - " cas"
107+ - " serde"
108+ steps :
109+ - name : Checkout
110+ uses : actions/checkout@v2
111+
112+ - name : Cache cargo dependencies
113+ uses : actions/cache@v2
114+ with :
115+ path : |
116+ - ~/.cargo/bin/
117+ - ~/.cargo/registry/index/
118+ - ~/.cargo/registry/cache/
119+ - ~/.cargo/git/db/
120+ key : ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
121+ restore-keys : |
122+ ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }}
123+ ${{ runner.OS }}-cargo-
124+
125+ - name : Cache build output dependencies
126+ uses : actions/cache@v2
127+ with :
128+ path : target
129+ key : ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
130+ restore-keys : |
131+ ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
132+ ${{ runner.OS }}-build-
133+
134+ - name : Install stable Rust with target (${{ matrix.target }})
135+ uses : actions-rs/toolchain@v1
136+ with :
137+ toolchain : stable
138+ target : ${{ matrix.target }}
139+ override : true
140+
141+ - name : cargo doc
142+ uses : actions-rs/cargo@v1
143+ with :
144+ use-cross : false
145+ command : doc
146+ args : --target=${{ matrix.target }} --no-default-features --features=${{ matrix.features }}
147+
96148 # Run cpass tests
97149 testcpass :
98150 name : testcpass
@@ -299,6 +351,7 @@ jobs:
299351 needs :
300352 - style
301353 - check
354+ - doc
302355 - testcpass
303356 - testtsan
304357 - testcfail
You can’t perform that action at this time.
0 commit comments