Files
MusicPlayer/.gitea/workflows/gitea-build.yaml
Sebastian 734a463db9
All checks were successful
Build / build (push) Successful in 1m25s
#8: Added functionality to cache more than one song
2025-10-26 20:48:35 +01:00

62 lines
2.0 KiB
YAML

#
# .gitea/workflows/gitea-build.yaml
#
#
name: "Build"
on:
push:
branches: [main, develop]
env:
GODOT_VERSION: 4.5
PROJECT_PATH: .
#GAME_VERSION: 0.0.8
#GAME_VERSION: ${{gitea.ref_name}}
EXPORT_NAME: test-project
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download Godot
run: |
#echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip"
curl -L -o godot.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_linux.x86_64.zip
unzip godot.zip
mv Godot_v$GODOT_VERSION-stable_linux.x86_64 godot
chmod +x godot
- name: Download Godot Export Templates
run: |
#echo "https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz"
curl -L -o export_templates.zip https://github.com/godotengine/godot-builds/releases/download/$GODOT_VERSION-stable/Godot_v$GODOT_VERSION-stable_export_templates.tpz
unzip export_templates.zip
- name: Install Export Templates
run: |
mkdir -p ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
mv ./templates/* ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
- name: Create build folder
run: |
mkdir -v -p build
- name: Windows Build
run: |
cd $PROJECT_PATH
./godot --headless --verbose --export-release "Windows Desktop" "build/$EXPORT_NAME.exe"
- name: Linux Build
run: |
cd $PROJECT_PATH
./godot --headless --verbose --export-release "Linux" "build/$EXPORT_NAME.x86_64"
- name: MacOS Build
run: |
cd $PROJECT_PATH
./godot --headless --verbose --export-release "macOS" "build/$EXPORT_NAME.zip"