From b8f49effd273d2577c0426bf126380eb4b02f8f4 Mon Sep 17 00:00:00 2001 From: d10sfan Date: Thu, 14 Sep 2023 11:29:04 -0500 Subject: [PATCH] Build for 4.1 godot --- .github/workflows/release.yml | 19 ++++++++++++------- build.sh | 4 ++-- godot_version.txt | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01c65ec..ecf3624 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,16 +23,21 @@ jobs: with: path: ./godot_version.txt - name: Install Godot - uses: paulloz/godot-action@v1.2.2 - with: - version: ${{ steps.godot_version.outputs.content }} + run: | + export GODOT_VERSION=$(echo "${{ steps.godot_version.outputs.content }}"|tr -d '\n') + wget https://downloads.tuxfamily.org/godotengine/"$GODOT_VERSION"/Godot_v"$GODOT_VERSION"-stable_linux.x86_64.zip + unzip Godot_v"$GODOT_VERSION"-stable_linux.x86_64.zip + chmod +x Godot_v"$GODOT_VERSION"-stable_linux.x86_64 + rm Godot_v"$GODOT_VERSION"-stable_linux.x86_64.zip + mv Godot_v"$GODOT_VERSION"-stable_linux.x86_64 /usr/local/bin/godot + shell: bash - name: Build run: ./build.sh - name: Upload Artifacts uses: actions/upload-artifact@v3 with: - name: linux_x11_64_release - path: ./linux_x11_64_release + name: linux_release.x86_64 + path: ./linux_release.x86_64 deploy: needs: [build] runs-on: ubuntu-latest @@ -42,7 +47,7 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v3 with: - name: linux_x11_64_release + name: linux_release.x86_64 path: ./ - name: Create Release uses: softprops/action-gh-release@v0.1.15 @@ -55,5 +60,5 @@ jobs: prerelease: false generate_release_notes: true files: | - linux_x11_64_release + linux_release.x86_64 godot_version.txt diff --git a/build.sh b/build.sh index 0e6de11..f00ef79 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ 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 +scons platform=x11 production=yes tools=no target=template_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_gdnavigation_enabled=no module_ogg_enabled=no module_minimp3_enabled=no warnings=no popd -cp -rfv ./godot-build/bin/godot.x11.opt.64 ./linux_x11_64_release +cp -rfv ./godot-build/bin/godot.linuxbsd.template_release.x86_64 ./linux_release.x86_64 diff --git a/godot_version.txt b/godot_version.txt index 87ce492..7d5c902 100644 --- a/godot_version.txt +++ b/godot_version.txt @@ -1 +1 @@ -3.5.2 +4.1