1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-16 14:53:28 +02:00
comprehensive-rust/.github/workflows/build.yml

42 lines
753 B
YAML
Raw Normal View History

name: Build and Test
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
mdbook:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Install mdbook
run: cargo install mdbook --version 0.4.25
- name: Install mdbook-svgbob
run: cargo install mdbook-svgbob --version 0.2.1
- name: Test code snippets
run: mdbook test
cargo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Test Rust code
run: cargo test