Skip to content

Merge pull request #2087 from tonarino/fix-0.33-year #334

Merge pull request #2087 from tonarino/fix-0.33-year

Merge pull request #2087 from tonarino/fix-0.33-year #334

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
toolchain: [stable, beta, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: Run cargo check --all
env:
RUSTFLAGS: -D warnings
run: |
cargo check --all --all-targets
- name: Compile the tests
env:
RUSTFLAGS: -D warnings
run: |
cargo test --all --all-targets --no-run
- name: Run cargo doc
env:
RUSTFLAGS: -D warnings
run: |
cargo doc --all --all-features
book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install mdbook
run: |
sudo snap install mdbook
- name: Run mdbook
run: |
cd book && mdbook build
mkdir gh-pages && mv book gh-pages
- name: Deploy to gh pages
uses: JamesIves/github-pages-deploy-action@v4.2.3
with:
branch: gh-pages
folder: book/gh-pages
if: github.event_name == 'push'