Skip to content

Fix up github action #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 31 additions & 16 deletions .github/workflows/rbe.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,40 @@
name: Build and Publish

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: CI
on: [push, pull_request]

jobs:
build:

test:
name: Run tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/checkout@master

- name: Update rustup
run: rustup self update

- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable -c rust-docs
rustup default stable

- name: Install mdbook
run: cargo install mdbook

- name: Build
run: |
mkdir bin
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
echo "$(pwd)/bin" >> ${GITHUB_PATH}

- name: Report versions
run: |
rustup --version
rustc -Vv
mdbook --version

- name: Run tests
run: mdbook test

- name: Build HTML
run: mdbook build

- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
Expand Down