diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5a3898c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,60 @@ +name: Test Windows/macOS Build + +on: + release: + types: [published] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get -y install wget zip unzip + - name: Download Godot Headless + run: | + wget -q https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_linux_headless.64.zip + unzip Godot_v3.1.1-stable_linux_headless.64.zip + mv Godot_v3.1.1-stable_linux_headless.64 godot + chmod +x godot + + - name: Download Godot Export Templates + run: | + wget -q https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_export_templates.tpz + mkdir -p ~/.local/share/godot/templates + unzip Godot_v3.1.1-stable_export_templates.tpz -d ~/.local/share/godot/templates + mv ~/.local/share/godot/templates/templates ~/.local/share/godot/templates/3.1.1.stable + - name: Export win64 build + run: | + mkdir -p builds + mkdir -p builds/win64 + ./godot --path $GITHUB_WORKSPACE --export "win64" "builds/win64/ProjectTesseract.exe" + - name: Export macOS build + run: | + mkdir -p builds/macOS + ./godot --path $GITHUB_WORKSPACE --export "macOS" "builds/macOS/ProjectTesseract.app" + - name: Test if exports were successful + run: | + [ "$(ls -A builds/macOS)" ] && echo "Full" || exit 1 + [ "$(ls -A builds/win64)" ] && echo "Full" || exit 1 + - uses: actions/upload-artifact@master + with: + name: Windows_64 + path: builds/win64 + - uses: actions/upload-artifact@master + with: + name: macOS + path: builds/macOS + - name: Zip macOS + run: zip -r macOS.zip "builds/macOS" + - name: Upload to release + uses: JasonEtco/upload-to-release@master + with: + args: macOS.zip application/octet-stream + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.gitignore b/.gitignore index 7b2f30f..2653e7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .gitlab_ci.yml - +.github/workflows/ # Godot-specific ignores .import/ export.cfg diff --git a/export_presets.cfg b/export_presets.cfg index b2e0a4c..303ce31 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -1,41 +1,18 @@ [preset.0] -name="HTML5" -platform="HTML5" -runnable=true -custom_features="" -export_filter="all_resources" -include_filter="" -exclude_filter="" -export_path="./public/HTML5/spin.html" -patch_list=PoolStringArray( ) -script_export_mode=1 -script_encryption_key="" - -[preset.0.options] - -vram_texture_compression/for_desktop=true -vram_texture_compression/for_mobile=false -html/custom_html_shell="" -html/head_include="" -custom_template/release="" -custom_template/debug="" - -[preset.1] - -name="Windows Desktop" +name="win64-1" platform="Windows Desktop" runnable=true custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="./public/Win/spin.exe" +export_path="" patch_list=PoolStringArray( ) script_export_mode=1 script_encryption_key="" -[preset.1.options] +[preset.0.options] texture_format/bptc=false texture_format/s3tc=true @@ -48,66 +25,64 @@ custom_template/debug="" application/icon="" application/file_version="" application/product_version="" -application/company_name="" -application/product_name="" +application/company_name="Lunatic Games" +application/product_name="ProjectTesseract" application/file_description="" application/copyright="" application/trademarks="" -[preset.2] +[preset.1] -name="Linux/X11" -platform="Linux/X11" +name="macOS-1" +platform="Mac OSX" runnable=true custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="./public/Linux/spin.x86_64" +export_path="" patch_list=PoolStringArray( ) script_export_mode=1 script_encryption_key="" -[preset.2.options] +[preset.1.options] -texture_format/bptc=false +custom_package/debug="" +custom_package/release="" +application/name="ProjectTesseract" +application/info="Made with Godot Engine" +application/icon="" +application/identifier="" +application/signature="" +application/short_version="1.0" +application/version="1.0" +application/copyright="Lunatic Games" +display/high_res=true texture_format/s3tc=true texture_format/etc=false texture_format/etc2=false -texture_format/no_bptc_fallbacks=true -binary_format/64_bits=true -custom_template/release="" -custom_template/debug="" - -[preset.3] +[preset.2] -name="Mac OSX" -platform="Mac OSX" +name="linux/x11-1" +platform="Linux/X11" runnable=true custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="./public/Mac OSX/spin.app" +export_path="" patch_list=PoolStringArray( ) script_export_mode=1 script_encryption_key="" -[preset.3.options] +[preset.2.options] -custom_package/debug="" -custom_package/release="" -application/name="" -application/info="Made with Godot Engine" -application/icon="" -application/identifier="" -application/signature="" -application/short_version="1.0" -application/version="1.0" -application/copyright="" -display/high_res=false +texture_format/bptc=false texture_format/s3tc=true texture_format/etc=false texture_format/etc2=false - +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=true +custom_template/release="" +custom_template/debug=""