mirror of https://github.com/rust-lang/nomicon
Part of #171 Ported from https://github.com/rust-lang/reference/pull/705; thanks @ehuss!pull/172/head
parent
5004ad30d6
commit
bbab3be166
@ -0,0 +1,28 @@
|
|||||||
|
name: CI
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Update rustup
|
||||||
|
run: rustup self update
|
||||||
|
- name: Install Rust
|
||||||
|
run: |
|
||||||
|
rustup set profile minimal
|
||||||
|
rustup toolchain install nightly -c rust-docs
|
||||||
|
rustup default nightly
|
||||||
|
- name: Install mdbook
|
||||||
|
run: |
|
||||||
|
mkdir bin
|
||||||
|
curl -sSL https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.4/mdbook-v0.3.4-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
|
||||||
|
echo "##[add-path]$(pwd)/bin"
|
||||||
|
- name: Report versions
|
||||||
|
run: |
|
||||||
|
rustup --version
|
||||||
|
rustc -Vv
|
||||||
|
mdbook --version
|
||||||
|
- name: Run tests
|
||||||
|
run: mdbook test
|
@ -1,14 +0,0 @@
|
|||||||
language: rust
|
|
||||||
|
|
||||||
cache: cargo
|
|
||||||
|
|
||||||
rust:
|
|
||||||
- nightly
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- (cargo install mdbook --force || true)
|
|
||||||
|
|
||||||
script:
|
|
||||||
- export PATH=$PATH:/home/travis/.cargo/bin;
|
|
||||||
- mdbook test
|
|
||||||
|
|
Loading…
Reference in new issue