Compare commits

2 Commits

Author SHA1 Message Date
71e37b0b55 chore: added missing blender in path
Some checks failed
Build Release / Windows Export (pull_request) Failing after 2m5s
Build Release / Create Release (pull_request) Has been skipped
2026-03-17 23:12:38 +01:00
81dca211b5 chore: added checkout 2026-03-17 22:54:31 +01:00

View File

@@ -10,6 +10,7 @@ env:
GODOT_VERSION: 4.6.1 GODOT_VERSION: 4.6.1
EXPORT_NAME: Experements EXPORT_NAME: Experements
PROJECT_PATH: . PROJECT_PATH: .
BLENDER_VERSION: 5.0.0
jobs: jobs:
export-windows: export-windows:
@@ -33,63 +34,88 @@ jobs:
lfs: true lfs: true
- name: Setup - name: Setup
shell: bash
run: | run: |
mkdir -v -p ~/.local/share/godot/export_templates/ mkdir -v -p ~/.local/share/godot/export_templates/
mkdir -v -p ~/.config/ 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
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
fi
- name: Windows Build - name: Windows Build
run: | run: |
set -Eeuo pipefail
mkdir -v -p build/windows mkdir -v -p build/windows
EXPORT_DIR="$(readlink -f build)" EXPORT_DIR="$(readlink -f build)"
cd $PROJECT_PATH cd $PROJECT_PATH
godot --headless --verbose --export-release "Windows" "$EXPORT_DIR/windows/$EXPORT_NAME.exe" godot --headless --export-release "Windows" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: windows name: windows
path: build/windows path: build/windows
export-linux: # export-linux:
name: Linux Export # name: Linux Export
runs-on: ubuntu-24.04 # Use 24.04 with godot 4 # runs-on: ubuntu-24.04 # Use 24.04 with godot 4
container: barichello/godot-ci:4.6 # container: barichello/godot-ci:4.6
steps: # steps:
- name: Update and install dependencies # - name: Update and install dependencies
run: | # run: |
apt-get update # apt-get update
apt-get install -y curl gnupg # apt-get install -y curl gnupg
- name: Install Node.js # - name: Install Node.js
run: | # run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - # curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs # apt-get install -y nodejs
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
lfs: true # lfs: true
- name: Setup # - name: Setup
run: | # run: |
mkdir -v -p ~/.local/share/godot/export_templates/ # mkdir -v -p ~/.local/share/godot/export_templates/
- name: Linux Build # - name: Linux Build
run: | # run: |
mkdir -v -p build/linux # set -Eeuo pipefail
EXPORT_DIR="$(readlink -f build)" # mkdir -v -p build/linux
cd $PROJECT_PATH # EXPORT_DIR="$(readlink -f build)"
godot --headless --verbose --export-release "Linux/X11" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64" # cd $PROJECT_PATH
# godot --headless --export-release "Linux/X11" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
- name: Upload Artifact # - name: Upload Artifact
uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3
with: # with:
name: linux # name: linux
path: build/linux # path: build/linux
create-release: create-release:
name: Create Release name: Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [export-mac, export-linux, export-windows] needs: [export-linux, export-windows]
steps: steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract version and body from CHANGELOG - name: Extract version and body from CHANGELOG
id: changelog id: changelog
run: | run: |