mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	Basic action
Opened permissions Move setup to Dockerfile Update Update Update Update Update Update Update Update
This commit is contained in:
		
							
								
								
									
										16
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					FROM barichello/godot-ci:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LABEL "com.github.actions.name"="Build Godot"
 | 
				
			||||||
 | 
					LABEL "com.github.actions.description"="Build a Godot project for multiple platforms"
 | 
				
			||||||
 | 
					LABEL "com.github.actions.icon"="loader"
 | 
				
			||||||
 | 
					LABEL "com.github.actions.color"="blue"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LABEL version="0.0.0"
 | 
				
			||||||
 | 
					LABEL repository="https://github.com/josephbmanley/build-godot-action"
 | 
				
			||||||
 | 
					LABEL homepage="https://cloudsumu.com/"
 | 
				
			||||||
 | 
					LABEL maintainer="Joseph Manley <joseph@cloudsumu.com>"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					USER root
 | 
				
			||||||
 | 
					ADD entrypoint.sh /entrypoint.sh
 | 
				
			||||||
 | 
					RUN chmod +x entrypoint.sh
 | 
				
			||||||
 | 
					ENTRYPOINT ["/entrypoint.sh"]
 | 
				
			||||||
							
								
								
									
										9
									
								
								action.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								action.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					name: "Build Godot"
 | 
				
			||||||
 | 
					description: "Build a Godot project for multiple platforms"
 | 
				
			||||||
 | 
					author: josephbmanley
 | 
				
			||||||
 | 
					runs:
 | 
				
			||||||
 | 
					  using: docker
 | 
				
			||||||
 | 
					  image: Dockerfile
 | 
				
			||||||
 | 
					branding:
 | 
				
			||||||
 | 
					  icon: loader
 | 
				
			||||||
 | 
					  color: blue
 | 
				
			||||||
							
								
								
									
										22
									
								
								entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					wget https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz --quiet
 | 
				
			||||||
 | 
					mkdir ~/.cache
 | 
				
			||||||
 | 
					mkdir -p ~/.config/godot
 | 
				
			||||||
 | 
					mkdir -p ~/.local/share/godot/templates/3.1.1.stable
 | 
				
			||||||
 | 
					unzip Godot_v3.1.1-stable_export_templates.tpz
 | 
				
			||||||
 | 
					mv templates/* ~/.local/share/godot/templates/3.1.1.stable
 | 
				
			||||||
 | 
					rm -f Godot_v3.1.1-stable_export_templates.tpz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Export for Linux
 | 
				
			||||||
 | 
					mkdir -p ./build/linux
 | 
				
			||||||
 | 
					godot --export Linux/X11 ./build/linux/${PROJECT}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Export for Windows
 | 
				
			||||||
 | 
					mkdir -p ./build/windows
 | 
				
			||||||
 | 
					godot --export "Windows Desktop" ./build/windows/${PROJECT}.exe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Export for OSX
 | 
				
			||||||
 | 
					mkdir -p ./builds/mac
 | 
				
			||||||
 | 
					godot --export "Mac OSX" ./build/mac/${PROJECT}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user