Merge pull request #43 from mistalan/copilot/fix-build-warnings #104
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI - Build Validation | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| build: | |
| name: Build and Validate | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| lfs: true | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Setup Godot 4.5 .NET | |
| uses: chickensoft-games/setup-godot@v2 | |
| with: | |
| version: '4.5.0' | |
| use-dotnet: true | |
| include-templates: true | |
| - name: Verify Godot installation | |
| run: godot --version | |
| - name: Generate C# bindings | |
| run: godot --headless --build-solutions --quit | |
| timeout-minutes: 5 | |
| - name: Restore .NET dependencies | |
| run: dotnet restore | |
| - name: Build project (Release) | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Build summary | |
| if: always() | |
| run: | | |
| echo "✅ Build validation completed" | |
| echo "Godot version: $(godot --version)" | |
| echo ".NET version: $(dotnet --version)" |