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 | name: Compile Rust Code on Release | ||||||
| 
 | 
 | ||||||
| on: | on: [push] | ||||||
|   release: |  | ||||||
|     types: [created] |  | ||||||
| 
 |  | ||||||
| jobs: | jobs: | ||||||
|   build: |   lint&test: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| 
 |     container: | ||||||
|  |       image: node:alpine | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout code |       - uses: actions/checkout@v4 | ||||||
|         uses: actions/checkout@v2 |       - run: apk add curl gcc rustup cargo rust | ||||||
| 
 |       - run: cargo check | ||||||
|       - name: Set up Rust with Alpine |       - run: cargo test | ||||||
|         run: | |       - run: cargo build --release          | ||||||
|           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/ |  | ||||||
|            |  | ||||||
|       - name: Upload Artifacts |       - name: Upload Artifacts | ||||||
|         uses: actions/upload-artifact@v2 |         uses: actions/upload-artifact@v3 | ||||||
|         with: |         with: | ||||||
|           name: rust-release-artifacts |           name: wololo-app | ||||||
|           path: artifacts/ |           path: target/release/wololo | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue