ci: switch to GitHub Actions.
This commit is contained in:
		
							
								
								
									
										30
									
								
								.github/workflows/cpp.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/cpp.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| name: C++ | ||||
|  | ||||
| on: [push] | ||||
| jobs: | ||||
|  | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - uses: actions/checkout@v2 | ||||
|  | ||||
|     - name: Install scons and gtest | ||||
|       run: | | ||||
|         sudo apt-get install -y scons | ||||
|         sudo apt-get install -y cmake scons | ||||
|         wget https://github.com/google/googletest/archive/release-1.8.0.zip | ||||
|         unzip -q release-1.8.0.zip | ||||
|         cd googletest-release-1.8.0 | ||||
|         cmake . | ||||
|         make | ||||
|         sudo make install | ||||
|  | ||||
|     - name: Build examples | ||||
|       run: | | ||||
|         cd examples | ||||
|         scons | ||||
|  | ||||
|     - name: Test | ||||
|       run: | | ||||
|         cd test | ||||
|         scons check | ||||
		Reference in New Issue
	
	Block a user