From 2400e2e4a63190d06f463e8c4603266bd598c81c Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 30 Oct 2019 08:22:48 -0500 Subject: [PATCH] Port from Travis to GitHub Actions Based on https://github.com/rust-lang/reference/pull/705; thanks @ehuss! --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 9 --------- 2 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3f83cb26 --- /dev/null +++ b/.github/workflows/main.yml @@ -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/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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bb46f710..00000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: rust -cache: cargo -rust: nightly -before_script: - - cargo install mdbook -Z install-upgrade - - mdbook --version -script: - - mdbook build - - mdbook test