Add pre-ci release-binary creation
This commit is contained in:
		
							parent
							
								
									ace4face5a
								
							
						
					
					
						commit
						83c65c00fe
					
				
					 2 changed files with 23 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
/target
 | 
					/target
 | 
				
			||||||
/pkl-out
 | 
					/out
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/.env
 | 
					/.env
 | 
				
			||||||
/api.http
 | 
					/api.http
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										24
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										24
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -15,11 +15,31 @@ configs:
 | 
				
			||||||
	$(MAKE) emgauwa-controller.json
 | 
						$(MAKE) emgauwa-controller.json
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pkl-package:
 | 
					pkl-package:
 | 
				
			||||||
	pkl project package config --output-path "./pkl-out"
 | 
						pkl project package config --output-path "./out/pkl"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -f emgauwa-controller.json
 | 
						rm -f emgauwa-controller.json
 | 
				
			||||||
	rm -f emgauwa-controller.sqlite
 | 
						rm -f emgauwa-controller.sqlite
 | 
				
			||||||
	rm -f emgauwa-core.json
 | 
						rm -f emgauwa-core.json
 | 
				
			||||||
	rm -f emgauwa-core.sqlite
 | 
						rm -f emgauwa-core.sqlite
 | 
				
			||||||
	rm -f emgauwa-dev.sqlite
 | 
						rm -f emgauwa-dev.sqlite
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					emgauwa-controller_%:
 | 
				
			||||||
 | 
						$(TOOL) build --target $* --release --bin emgauwa-controller
 | 
				
			||||||
 | 
						mkdir -p out/releases
 | 
				
			||||||
 | 
						cp target/$*/release/emgauwa-controller out/releases/emgauwa-controller_$*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					emgauwa-core_%:
 | 
				
			||||||
 | 
						$(TOOL) build --target $* --release --bin emgauwa-core
 | 
				
			||||||
 | 
						mkdir -p out/releases
 | 
				
			||||||
 | 
						cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					emgauwa_%:
 | 
				
			||||||
 | 
						$(MAKE) emgauwa-controller_$*
 | 
				
			||||||
 | 
						$(MAKE) emgauwa-core_$*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					releases:
 | 
				
			||||||
 | 
						$(MAKE) TOOL=cross emgauwa_arm-unknown-linux-gnueabihf
 | 
				
			||||||
 | 
						$(MAKE) TOOL=cargo emgauwa_x86_64-unknown-linux-gnu
 | 
				
			||||||
 | 
						$(MAKE) TOOL=cross emgauwa_x86_64-unknown-linux-musl
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue