11 Commits

Author SHA1 Message Date
75fb76ef03 Merge pull request 'test release' (#5) from main into release
All checks were successful
Build Release / Linux Export (push) Successful in 2m8s
Build Release / Windows Export (push) Successful in 2m43s
Build Release / Create Release (push) Successful in 1m59s
Reviewed-on: #5
2026-03-18 00:06:21 +01:00
36ca9ba5ea fix
All checks were successful
Build Release / Linux Export (pull_request) Successful in 2m8s
Build Release / Windows Export (pull_request) Successful in 2m44s
Build Release / Create Release (pull_request) Successful in 1m59s
2026-03-18 00:05:41 +01:00
172fc7669b fixed some problme
Some checks failed
Build Release / Linux Export (pull_request) Successful in 2m8s
Build Release / Windows Export (pull_request) Successful in 2m43s
Build Release / Create Release (pull_request) Failing after 2m2s
2026-03-18 00:03:01 +01:00
0a92f7b461 feat: added version to zip
Some checks failed
Build Release / Linux Export (pull_request) Successful in 2m9s
Build Release / Windows Export (pull_request) Successful in 2m43s
Build Release / Create Release (pull_request) Failing after 1m55s
2026-03-17 23:58:46 +01:00
d03874f5e7 fix: zipping exports
Some checks failed
Build Release / Linux Export (pull_request) Successful in 2m9s
Build Release / Windows Export (pull_request) Successful in 2m42s
Build Release / Create Release (pull_request) Has been cancelled
2026-03-17 23:57:51 +01:00
987e4300ab chore: improved artefact upload on relaes
All checks were successful
Build Release / Linux Export (pull_request) Successful in 2m9s
Build Release / Windows Export (pull_request) Successful in 2m51s
Build Release / Create Release (pull_request) Successful in 2m2s
2026-03-17 23:52:42 +01:00
991f9f4bec chore: exporting build files
All checks were successful
Build Release / Linux Export (pull_request) Successful in 2m8s
Build Release / Windows Export (pull_request) Successful in 2m50s
Build Release / Create Release (pull_request) Successful in 1m49s
2026-03-17 23:43:04 +01:00
5c35a1beed fixed linux build
All checks were successful
Build Release / Linux Export (pull_request) Successful in 2m8s
Build Release / Windows Export (pull_request) Successful in 2m46s
Build Release / Create Release (pull_request) Successful in 1m49s
2026-03-17 23:36:44 +01:00
86274ab1bf added linux build
Some checks failed
Build Release / Linux Export (pull_request) Failing after 2m1s
Build Release / Windows Export (pull_request) Successful in 2m42s
Build Release / Create Release (pull_request) Has been skipped
2026-03-17 23:33:41 +01:00
248496db91 chore: fixed pipfall
Some checks failed
Build Release / Linux Export (pull_request) Failing after 1m44s
Build Release / Windows Export (pull_request) Successful in 2m48s
Build Release / Create Release (pull_request) Has been skipped
2026-03-17 23:30:11 +01:00
926a1e8aa0 chore: added blender to build
Some checks failed
Build Release / Linux Export (pull_request) Failing after 1m44s
Build Release / Windows Export (pull_request) Failing after 2m31s
Build Release / Create Release (pull_request) Has been skipped
2026-03-17 23:27:53 +01:00

View File

@@ -22,6 +22,7 @@ jobs:
run: |
apt-get update
apt-get install -y curl gnupg
apt-get install -y blender
- name: Install Node.js
run: |
@@ -36,29 +37,31 @@ jobs:
- name: Setup
shell: bash
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
mkdir -v -p ~/.config/
set -Eeuo pipefail
echo "Installing Blender ${{ env.BLENDER_VERSION }}..."
MAJOR_MINOR="$(echo "${{ env.BLENDER_VERSION }}" | cut -d. -f1,2)"
BLENDER_URL="https://download.blender.org/release/Blender${MAJOR_MINOR}/blender-${{ env.BLENDER_VERSION }}-linux-x64.tar.xz"
wget -q "$BLENDER_URL" -O ~/blender.tar.xz
tar -xf ~/blender.tar.xz -C ~/
BLENDER_DIR="$(find ~ -maxdepth 1 -name "blender-*" -type d | head -n 1)"
echo "${BLENDER_DIR}" >> "$GITHUB_PATH"
echo "BLENDER_PATH=${BLENDER_DIR}/blender" >> "$GITHUB_ENV"
"${BLENDER_DIR}/blender" --version
BLENDER_PATH="/usr/bin/blender"
mkdir -pv ~/.config/godot
mkdir -pv ~/.local/share/godot/export_templates/
GODOT_CFG="$(find ~/.config/godot -name "editor_settings-*.tres" | head -n 1 || true)"
if [ -n "$GODOT_CFG" ]; then
if [ -n "${BLENDER_PATH:-}" ]; then
grep -q '^filesystem/import/blender/blender_path' "$GODOT_CFG" \
&& sed -i "s|^filesystem/import/blender/blender_path = .*|filesystem/import/blender/blender_path = \"$BLENDER_PATH\"|" "$GODOT_CFG" \
|| echo "filesystem/import/blender/blender_path = \"$BLENDER_PATH\"" >> "$GODOT_CFG"
fi
if [ -z "$GODOT_CFG" ]; then
echo "# Missing Godot editor settings" > "$GODOT_CFG"
exit 1
fi
# Set the Blender path
if [ -n "${BLENDER_PATH:-}" ]; then
if grep -q '^filesystem/import/blender/blender_path' "$GODOT_CFG"; then
# Replace existing path
sed -i "s|^filesystem/import/blender/blender_path = .*|filesystem/import/blender/blender_path = \"$BLENDER_PATH\"|" "$GODOT_CFG"
else
# Append new path
echo "filesystem/import/blender/blender_path = \"$BLENDER_PATH\"" >> "$GODOT_CFG"
fi
fi
echo "Blender path configured in $GODOT_CFG"
- name: Windows Build
shell: bash
run: |
set -Eeuo pipefail
mkdir -v -p build/windows
@@ -71,42 +74,65 @@ jobs:
name: windows
path: build/windows
# export-linux:
# name: Linux Export
# runs-on: ubuntu-24.04 # Use 24.04 with godot 4
# container: barichello/godot-ci:4.6
# steps:
# - name: Update and install dependencies
# run: |
# apt-get update
# apt-get install -y curl gnupg
export-linux:
name: Linux Export
runs-on: ubuntu-24.04 # Use 24.04 with godot 4
container: barichello/godot-ci:4.6
steps:
- name: Update and install dependencies
run: |
apt-get update
apt-get install -y curl gnupg
# - name: Install Node.js
# run: |
# curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
# apt-get install -y nodejs
- name: Install Node.js
run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
# - name: Checkout
# uses: actions/checkout@v4
# with:
# lfs: true
# - name: Setup
# run: |
# mkdir -v -p ~/.local/share/godot/export_templates/
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
shell: bash
run: |
set -Eeuo pipefail
BLENDER_PATH="/usr/bin/blender"
mkdir -pv ~/.config/godot
mkdir -pv ~/.local/share/godot/export_templates/
GODOT_CFG="$(find ~/.config/godot -name "editor_settings-*.tres" | head -n 1 || true)"
# - name: Linux Build
# run: |
# set -Eeuo pipefail
# mkdir -v -p build/linux
# EXPORT_DIR="$(readlink -f build)"
# cd $PROJECT_PATH
# godot --headless --export-release "Linux/X11" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
if [ -z "$GODOT_CFG" ]; then
echo "# Missing Godot editor settings" > "$GODOT_CFG"
exit 1
fi
# - name: Upload Artifact
# uses: actions/upload-artifact@v3
# with:
# name: linux
# path: build/linux
# Set the Blender path
if [ -n "${BLENDER_PATH:-}" ]; then
if grep -q '^filesystem/import/blender/blender_path' "$GODOT_CFG"; then
# Replace existing path
sed -i "s|^filesystem/import/blender/blender_path = .*|filesystem/import/blender/blender_path = \"$BLENDER_PATH\"|" "$GODOT_CFG"
else
# Append new path
echo "filesystem/import/blender/blender_path = \"$BLENDER_PATH\"" >> "$GODOT_CFG"
fi
fi
echo "Blender path configured in $GODOT_CFG"
- name: Linux Build
shell: bash
run: |
set -Eeuo pipefail
mkdir -v -p build/linux
EXPORT_DIR="$(readlink -f build)"
cd $PROJECT_PATH
godot --headless --export-release "Linux/X11" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux
path: build/linux
create-release:
name: Create Release
@@ -116,6 +142,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Download Windows Artifact
uses: actions/download-artifact@v3
with:
name: windows
path: build/windows
- name: Download Linux Artifact
uses: actions/download-artifact@v3
with:
name: linux
path: build/linux
- name: Extract version and body from CHANGELOG
id: changelog
run: |
@@ -145,6 +183,11 @@ jobs:
echo "$BODY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Zipping exports
run: |
zip -r windows-${{ steps.changelog.outputs.version }}.zip build/windows
zip -r linux-${{ steps.changelog.outputs.version }}.zip build/linux
- name: Create Release
uses: akkuman/gitea-release-action@v1
with:
@@ -154,3 +197,6 @@ jobs:
body: ${{ steps.changelog.outputs.body }}
draft: false
token: ${{ secrets.GITEA_TOKEN }}
files: |
windows-${{ steps.changelog.outputs.version }}.zip
linux-${{ steps.changelog.outputs.version }}.zip