Skip to content

Commit

Permalink
Updated to GodotSteam 4.13, updated GA files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gramps committed Mar 4, 2025
1 parent 40f5111 commit f46970a
Show file tree
Hide file tree
Showing 26 changed files with 1,202 additions and 435 deletions.
37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

58 changes: 58 additions & 0 deletions .github/actions/build-godot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Godot


description: Build Godot with the provided options


inputs:
buildroot:
description: Build root to add to the PATH before building Godot, if Linux
default: ''

arch:
description: Is it 32 or 64?
default: 'x86_64'

target:
description: The SCONS target (template_debug / template_release)
default: "template_debug"

tests:
description: If tests are to be built
default: false

platform:
description: The Godot platform to build
required: false

sconsflags:
default: ''

scons-cache:
description: The scons cache path
default: "${{ github.workspace }}/.scons-cache/"

scons-cache-limit:
description: The scons cache size limit
# actions/cache has 10 GiB limit, and GitHub runners have a 14 GiB disk.
# Limit to 7 GiB to avoid having the extracted cache fill the disk.
default: 7168


runs:
using: "composite"

steps:
- name: SCONS Build
shell: bash
env:
SCONSFLAGS: ${{ inputs.sconsflags }}
SCONS_CACHE: ${{ inputs.scons-cache }}
SCONS_CACHE_LIMIT: ${{ inputs.scons-cache-limit }}
run: |
echo "Building with flags:" ${{ env.SCONSFLAGS }}
if [[ ${{ inputs.buildroot != '' }} ]]; then
echo "Using buildroot at ${{ inputs.buildroot }}"
fi
${{ inputs.buildroot != '' && format('PATH={0}:$PATH', inputs.buildroot) || '' }} scons platform=${{ inputs.platform }} arch=${{ inputs.arch }} target=${{ inputs.target }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }}
ls -l bin/
39 changes: 39 additions & 0 deletions .github/actions/download-godot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Download Godot-CPP source code


description: Download and extract the Godot-CPP source code for use in compiling


inputs:
version:
description: Version of Godot-CPP source code to download
default: "4.4"


runs:
using: "composite"

steps:
- name: Get Godot-CPP 4.4
if: ${{ inputs.version == '4.4' }}
shell: sh
run: |
git submodule update --init --recursive
- name: Get Godot-CPP 4.3
if: ${{ inputs.version == '4.3' }}
shell: sh
run: |
rm .gitmodules
mv .gitmodules43 .gitmodules
git submodule sync
git submodule update --init --recursive
- name: Get Godot-CPP 4.1 (For Godot 4.1-4.2)
if: ${{ inputs.version == '4.1' }}
shell: sh
run: |
rm .gitmodules
mv .gitmodules41 .gitmodules
git submodule sync
git submodule update --init --recursive
20 changes: 20 additions & 0 deletions .github/actions/download-godotsteam-multiplayer/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Download GodotSteam Multiplayer Peer


description: Download and extract the GodotSteam Multiplayer Peer source code for use in compiling


runs:
using: "composite"

steps:
- name: Download and extract GodotSteam Multiplayer Peer
uses: actions/checkout@v4
with:
path: "godotsteammultiplayer"
ref: "multiplayer-peer"

- name: Copy GodotSteam
shell: bash
run: |
cp -r godotsteammultiplayer ./modules/godotsteam_multiplayer
41 changes: 41 additions & 0 deletions .github/actions/download-steamworks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Download Steamworks SDK


description: Download and extract the Steamworks SDK from our secret repository


inputs:
path:
description: Where to dump this
default: "steamworks"

repository:
description: GodotSteam's private SDK repo
default: "It's a secret..."

token:
description: GodotSteam's repo token for access
default: "It's a secret..."

ref:
description: The Steamworks SDK tag used
default: "sdk-1.60"


runs:
using: "composite"

steps:
- name: Download Steamworks SDK
uses: actions/checkout@v4
with:
path: ${{ inputs.path }}
repository: ${{ inputs.repository }}
token: ${{ inputs.token }}
ref: ${{ inputs.ref }}

- name: Copy Steamworks
shell: bash
run: |
cp -r steamworks/public godotsteam/sdk
cp -r steamworks/redistributable_bin godotsteam/sdk
33 changes: 33 additions & 0 deletions .github/actions/download-vulkan/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Download and Install Vulkan SDK


description: Download and install the Vulkan Molten SDK


runs:
using: "composite"

steps:
- name: Download and Install
shell: bash
run: |
set -euo pipefail
IFS=$'\n\t'
# Download and install the Vulkan SDK.
curl -L "https://sdk.lunarg.com/sdk/download/1.3.268.1/mac/vulkansdk-macos-1.3.268.1.dmg" -o /tmp/vulkan-sdk.dmg
hdiutil attach /tmp/vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk
/Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \
--accept-licenses --default-answer --confirm-command install
cnt=5
until hdiutil detach -force /Volumes/vulkan-sdk
do
[[ cnt -eq "0" ]] && break
sleep 1
((cnt--))
done
rm -f /tmp/vulkan-sdk.dmg
echo 'Vulkan SDK installed successfully!'
29 changes: 29 additions & 0 deletions .github/actions/prep-buildroot/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Setup Linux Buildroot


description: Setup Linux buildroot for making Linux builds of Godot


inputs:
toolchain-name:
description: The release tag to use
default: "x86_64-godot-linux-gnu_sdk-buildroot"
arch:
description: What are we building against
default: "x86_64"


runs:
using: "composite"

steps:
- name: Download Buildroot
shell: bash
run: |
curl -fLO https://github.com/godotengine/buildroot/releases/download/godot-2023.08.x-4/${{ inputs.toolchain-name }}.tar.bz2
tar -xf ${{ inputs.toolchain-name }}.tar.bz2
chmod +x "${{ inputs.toolchain-name }}/relocate-sdk.sh"
"${{ inputs.toolchain-name }}/relocate-sdk.sh"
61 changes: 61 additions & 0 deletions .github/actions/prep-macos/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Prep MacOS For Packaging


description: Combine x86_64 and arm64 into Universal


inputs:
target:
description: Which packaging are we prepping
default: 'editor'


runs:
using: "composite"
steps:
- name: Create Universal Editor

if: ${{ inputs.target == 'editor' }}
shell: bash
run: |
ls -la bin/
lipo -create bin/godot.macos.editor.x86_64 bin/godot.macos.editor.arm64 -output bin/godot.macos.editor.universal
cp -r misc/dist/macos_tools.app bin/GodotSteam.app
mkdir -p bin/GodotSteam.app/Contents/MacOS
cp bin/godot.macos.editor.universal bin/GodotSteam.app/Contents/MacOS/Godot
chmod +x bin/GodotSteam.app/Contents/MacOS/Godot
cp modules/godotsteam/sdk/redistributable_bin/osx/libsteam_api.dylib bin/GodotSteam.app/Contents/MacOS/
cd bin/
zip -q -9 -r macos_editor.zip GodotSteam.app
cd ../
ls -la bin/
- name: Create Universal Templates
if: ${{ inputs.target == 'templates' }}
shell: bash
run: |
ls -la bin/
lipo -create bin/godot.macos.template_debug.x86_64 bin/godot.macos.template_debug.arm64 -output bin/godot.macos.template_debug.universal
lipo -create bin/godot.macos.template_release.x86_64 bin/godot.macos.template_release.arm64 -output bin/godot.macos.template_release.universal
$STRIP bin/godot.macos.template_release.universal
cp -r misc/dist/macos_template.app bin/
mkdir -p bin/macos_template.app/Contents/MacOS
cp bin/godot.macos.template_release.universal bin/macos_template.app/Contents/MacOS/godot_macos_release.universal
cp bin/godot.macos.template_debug.universal bin/macos_template.app/Contents/MacOS/godot_macos_debug.universal
chmod +x bin/macos_template.app/Contents/MacOS/godot_macos*
cp modules/godotsteam/sdk/redistributable_bin/osx/libsteam_api.dylib bin/macos_template.app/Contents/MacOS/
cd bin/
zip -q -9 -r macos.zip macos_template.app
cd ../
ls -la bin/
Loading

0 comments on commit f46970a

Please sign in to comment.