Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/dev-desktop-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,53 @@ jobs:
with:
name: linux_snapshot
path: build/${{ env.EXPORT_NAME }}_${{ env.MM_RELEASE }}_linux.tar.gz
export_linux_arm64:
name: Linux Export (arm64) 🗔
needs: export_windows_linux
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout 🛎️
uses: actions/checkout@v1
with:
submodules: true
- name: Setup 💻
run: |
cp -f material_maker/theme/default_theme_icons.svg material_maker/theme/default_theme_icons_export.svg
wget -q ${GODOT_DOWNLOAD_DIR}/Godot_v${GODOT_VERSION}-${GODOT_SUB}_linux.arm64.zip
unzip Godot_v${GODOT_VERSION}-${GODOT_SUB}_linux.arm64.zip
wget -q ${GODOT_DOWNLOAD_DIR}/Godot_v${GODOT_VERSION}-${GODOT_SUB}_export_templates.tpz
unzip -a Godot_v${GODOT_VERSION}-${GODOT_SUB}_export_templates.tpz
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_SUB}
mv ./templates/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_SUB}
mkdir -v -p build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
- name: Linux Build (arm64) 🐧
run: |
./Godot_v${GODOT_VERSION}-${GODOT_SUB}_linux.arm64 --headless -v --export-release "Linux/X11 arm64" ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64/$EXPORT_NAME.arm64
./Godot_v${GODOT_VERSION}-${GODOT_SUB}_linux.arm64 --headless -v --export-release "Linux/X11 arm64" ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64/$EXPORT_NAME.arm64
- name: Get documentation 🚀
if: ${{ github.event.inputs.gen_doc == 'true' }}
uses: actions/download-artifact@v4
with:
name: documentation
path: doc
- name: Copy Material Maker data 📁
run: |
cp -R ./addons/material_maker/nodes ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
cp -R ./material_maker/environments ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
cp -R ./material_maker/examples ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
cp -R ./material_maker/library ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
cp -R ./material_maker/meshes ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
cp -R ./material_maker/misc/export ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
cp -R ./material_maker/doc/_build/html ./build/${EXPORT_NAME}_${MM_RELEASE}_linux_arm64/doc || :
- name: Create archives 📁
run: |
cd build
tar zcvf ${EXPORT_NAME}_${MM_RELEASE}_linux_arm64.tar.gz ${EXPORT_NAME}_${MM_RELEASE}_linux_arm64
- name: Upload Linux (arm64) Artifact 🚀
uses: actions/upload-artifact@v4
with:
name: linux_arm64_snapshot
path: build/${{ env.EXPORT_NAME }}_${{ env.MM_RELEASE }}_linux_arm64.tar.gz
export-mac:
name: Mac Export 🍎
needs: export_windows_linux
Expand Down
60 changes: 56 additions & 4 deletions .github/workflows/godot-templates-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
branches: [main]
workflow_dispatch:

jobs:
build_templates:
runs-on: ubuntu-latest
env:
env:
GODOT_VERSION: 4.5.1
GODOT_SUB: stable
GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-${GODOT_SUB}
SCONSFLAGS: verbose=yes warnings=all use_lto=yes

jobs:
build_templates:
runs-on: ubuntu-latest

steps:
- name: Checkout current repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -90,3 +91,54 @@ jobs:
with:
name: windows-templates
path: export_templates_windows.zip
build_linux_aarch64_template:
runs-on: ubuntu-24.04-arm

steps:
- name: Checkout current repo
uses: actions/checkout@v4
with:
path: material-maker

- name: Clone latest stable Godot source into ./godot
run: |
git clone --depth 1 --branch ${GODOT_VERSION}-${GODOT_SUB} https://github.com/godotengine/godot.git godot
cd godot
patch -p1 < ../material-maker/material_maker/misc/mm.patch

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get update
sudo apt-get install -y \
build-essential scons pkg-config libx11-dev libxcursor-dev \
libxinerama-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev \
libpulse-dev libudev-dev libxi-dev libxrandr-dev libwayland-dev \

- name: Cache SCons build artifacts
uses: actions/cache@v3
with:
path: |
godot/.sconsign.dblite
godot/bin/
key: ${{ runner.os }}-godot-${{ hashFiles('godot/**/*.cpp', 'godot/**/*.h', 'godot/SConstruct', 'godot/SCsub') }}
restore-keys: |
${{ runner.os }}-godot-

- name: Build export templates (Linux arm64)
run: |
cd godot
scons platform=linuxbsd target=template_release tools=no
cd ..

- name: Package Linux(arm64) build
run: |
mkdir -p templates_linux_arm64
cp godot/bin/*linuxbsd* templates_linux_arm64/
(cd templates_linux_arm64 && zip -9 -r ../export_templates_linux_arm64.zip .)

- name: Upload Linux(arm64) artifact
uses: actions/upload-artifact@v4
with:
name: linux-arm64-templates
path: export_templates_linux_arm64.zip
64 changes: 56 additions & 8 deletions export_presets.cfg

Large diffs are not rendered by default.

Binary file not shown.
1 change: 1 addition & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ limits/debugger/max_chars_per_second=204800000

[rendering]

textures/vram_compression/import_s3tc_bptc=true
textures/vram_compression/import_etc2_astc=true
shading/overrides/force_lambert_over_burley.mobile=false
environment/defaults/default_environment="res://default_env.tres"
Expand Down