name: Build Godot Engine on: push: branches: [ "customized-moa" ] create: tags: - 'v*' jobs: build-windows: name: Build Windows ${{ matrix.name }} runs-on: ubuntu-latest # Run the entire job inside your new builder container container: image: gitea.212.63.210.91.nip.io/${{ gitea.repository_owner }}/godot-builder:6820db5c609225406450678a36d89277428d6033 # Credentials are required to pull from your private registry credentials: username: ${{ gitea.actor }} password: ${{ secrets.USER_PACKAGE_PASSWORD }} # Note: If this fails to pull due to SSL, we may need to use a 'docker run' step approach instead. strategy: fail-fast: false matrix: include: # 1. The Editor (The IDE) - name: Editor target: editor production: yes artifact_name: godot-windows-editor # 2. Debug Template (For testing game logic) - name: Debug Template target: template_debug production: no artifact_name: godot-windows-debug # 3. Release Template (For final export) - name: Release Template target: template_release production: yes artifact_name: godot-windows-release steps: - name: Checkout Source uses: actions/checkout@v3 with: submodules: recursive - name: Compile with SCons # We don't need to install scons/mingw; they are already in the Fedora image! run: | echo "Compiling ${{ matrix.name }}..." # Godot 4 SCons Command scons platform=windows \ target=${{ matrix.target }} \ arch=x86_64 \ precision=double \ production=${{ matrix.production }} \ -j$(nproc) - name: Verify Output run: ls -l bin/ - name: Upload Artifacts uses: actions/upload-artifact@v3 with: name: ${{ matrix.artifact_name }} # Corrected from *.dll to *.exe (Godot templates are executables) path: bin/*.exe