From 937a4b17cc160864b0bdf729205118dd4724aa42 Mon Sep 17 00:00:00 2001 From: d10sfan Date: Tue, 12 Sep 2023 09:09:30 -0500 Subject: [PATCH] Build for 3.5.2 godot --- .github/workflows/release.yml | 59 +++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ build.sh | 10 ++++++ godot_version.txt | 1 + 4 files changed, 72 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .gitignore create mode 100755 build.sh create mode 100644 godot_version.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..01c65ec --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,59 @@ +name: Build Godot Release Template + +on: + push: + tags: + - 'v*' +jobs: + build: + runs-on: ubuntu-latest + outputs: + godot_version: ${{ steps.godot_version.outputs.content }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Deps + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: clang libsdl2-dev scons libpng-dev + version: 1.0 + - name: Read godot version + id: godot_version + uses: juliangruber/read-file-action@v1 + with: + path: ./godot_version.txt + - name: Install Godot + uses: paulloz/godot-action@v1.2.2 + with: + version: ${{ steps.godot_version.outputs.content }} + - name: Build + run: ./build.sh + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: linux_x11_64_release + path: ./linux_x11_64_release + deploy: + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Download Artifacts + uses: actions/download-artifact@v3 + with: + name: linux_x11_64_release + path: ./ + - name: Create Release + uses: softprops/action-gh-release@v0.1.15 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} - Godot ${{ needs.build.outputs.godot_version }} + draft: false + prerelease: false + generate_release_notes: true + files: | + linux_x11_64_release + godot_version.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..960b588 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +godot-build +linux_x11_64_release diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0e6de11 --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +GODOT_VERSION=`cat godot_version.txt` + +git clone https://github.com/godotengine/godot.git --depth 1 -b "$GODOT_VERSION"-stable godot-build +pushd godot-build +scons platform=x11 production=yes tools=no target=release bits=64 lto=full disable_3d=yes module_arkit_enabled=no module_assimp_enabled=no module_bullet_enabled=no module_camera_enabled=no module_csg_enabled=no module_dds_enabled=no module_enet_enabled=no module_etc_enabled=no module_gridmap_enabled=no module_hdr_enabled=no module_jsonrpc_enabled=no module_mbedtls_enabled=no module_mobile_vr_enabled=no module_opensimplex_enabled=no module_opus_enabled=no module_pvr_enabled=no module_recast_enabled=no module_regex_enabled=no module_tga_enabled=no module_theora_enabled=no module_tinyexr_enabled=no module_upnp_enabled=no module_vhacd_enabled=no module_vorbis_enabled=no module_webm_enabled=no module_webrtc_enabled=no module_websocket_enabled=no module_xatlas_unwrap_enabled=no module_svg_enabled=no optimize=size minizip=no module_freetype_enabled=no module_gdnavigation_enabled=no module_ogg_enabled=no module_minimp3_enabled=no warnings=no builtin_libpng=no +popd + +cp -rfv ./godot-build/bin/godot.x11.opt.64 ./linux_x11_64_release diff --git a/godot_version.txt b/godot_version.txt new file mode 100644 index 0000000..87ce492 --- /dev/null +++ b/godot_version.txt @@ -0,0 +1 @@ +3.5.2