mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-14 22:56:44 +02:00
Add a build workflow to test PRs
We will expand this to build/test other things in the future.
This commit is contained in:
parent
15b8ca8a05
commit
11789caee2
26
.github/workflows/build.yml
vendored
Normal file
26
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Build and Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
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
|
||||||
|
|
||||||
|
- name: Install mdbook-svgbob
|
||||||
|
run: cargo install mdbook-svgbob
|
||||||
|
|
||||||
|
- name: Test code snippets
|
||||||
|
run: mdbook test
|
Loading…
x
Reference in New Issue
Block a user