You've already forked comprehensive-rust
							
							
				mirror of
				https://github.com/google/comprehensive-rust.git
				synced 2025-10-31 00:27:50 +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:
		
							
								
								
									
										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 | ||||
		Reference in New Issue
	
	Block a user