Compare commits
	
		
			9 commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 086e7e4ebb | |||
| a3c1ecf4e6 | |||
| 0f88f5a537 | |||
| b898faa2d5 | |||
| d173dfb456 | |||
| 3c8c406bb7 | |||
| c052452e19 | |||
| bc7dfa1cef | |||
| 14ddbfaaaa | 
					 1 changed files with 12 additions and 33 deletions
				
			
		
							
								
								
									
										45
									
								
								.github/workflows/test.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										45
									
								
								.github/workflows/test.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -1,40 +1,19 @@ | |||
| name: Compile Rust Code on Release | ||||
| 
 | ||||
| on: | ||||
|   release: | ||||
|     types: [created] | ||||
| 
 | ||||
| on: [push] | ||||
| jobs: | ||||
|   build: | ||||
|   lint&test: | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     container: | ||||
|       image: node:alpine | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Set up Rust with Alpine | ||||
|         run: | | ||||
|           docker run --rm \ | ||||
|             -v ${{ github.workspace }}:/usr/src/myapp \ | ||||
|             -w /usr/src/myapp \ | ||||
|             rust:alpine \ | ||||
|             sh -c "apk add --no-cache musl-dev && cargo build --release" | ||||
| 
 | ||||
|       - name: Run Tests | ||||
|         run: | | ||||
|           docker run --rm \ | ||||
|             -v ${{ github.workspace }}:/usr/src/myapp \ | ||||
|             -w /usr/src/myapp \ | ||||
|             rust:alpine \ | ||||
|             sh -c "apk add --no-cache musl-dev && cargo test --release" | ||||
| 
 | ||||
|       - name: Package Artifacts | ||||
|         run: | | ||||
|           mkdir -p artifacts | ||||
|           cp target/release/your_executable artifacts/ | ||||
|            | ||||
|       - uses: actions/checkout@v4 | ||||
|       - run: apk add curl gcc rustup cargo rust | ||||
|       - run: cargo check | ||||
|       - run: cargo test | ||||
|       - run: cargo build --release          | ||||
|       - name: Upload Artifacts | ||||
|         uses: actions/upload-artifact@v2 | ||||
|         uses: actions/upload-artifact@v3 | ||||
|         with: | ||||
|           name: rust-release-artifacts | ||||
|           path: artifacts/ | ||||
|           name: wololo-app | ||||
|           path: target/release/wololo | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue