Skip to content

Commit 44e3117

Browse files
committed
Fix up github action
We build and distribute RBE as part of the rust distribution. This means we have a global version of mdbook that we use for all books in the distribution. So let's grab that version specifically. This was adapted from rust-lang/book.
1 parent ba6647c commit 44e3117

File tree

1 file changed

+29
-17
lines changed

1 file changed

+29
-17
lines changed

.github/workflows/rbe.yml

+29-17
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
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

94
jobs:
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: mdbook build
22-
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+
2335
- name: Upload Artifact
2436
uses: actions/upload-artifact@v1
2537
with:

0 commit comments

Comments
 (0)