Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
Build for 3.5.2 godot
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Sep 12, 2023
1 parent 9e89299 commit 937a4b1
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
godot-build
linux_x11_64_release
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions godot_version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.5.2

0 comments on commit 937a4b1

Please sign in to comment.