Update bug report template description #54
Workflow file for this run
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: GeneralsX CI | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| detect-changes: | |
| name: Detect File Changes | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| outputs: | |
| should-build: ${{ steps.filter.outputs.should-build }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Filter Changed Paths | |
| uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| token: '' | |
| filters: | | |
| should-build: | |
| - 'GeneralsMD/**' | |
| - 'Core/**' | |
| - 'Dependencies/**' | |
| - 'cmake/**' | |
| - 'CMakeLists.txt' | |
| - 'CMakePresets.json' | |
| - '.github/workflows/build-*.yml' | |
| - '.github/workflows/ci.yml' | |
| - name: Build Trigger Summary | |
| run: | | |
| echo "### 🔍 CI Trigger" >> $GITHUB_STEP_SUMMARY | |
| if [ "${{ steps.filter.outputs.should-build }}" = "true" ]; then | |
| echo "✅ Building all platforms (file changes detected)" >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "⏭️ Skipping build (no relevant changes)" >> $GITHUB_STEP_SUMMARY | |
| fi | |
| build-linux: | |
| name: Build Linux (GeneralsMD) | |
| needs: detect-changes | |
| if: needs.detect-changes.outputs.should-build == 'true' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/build-linux.yml | |
| with: | |
| game: GeneralsMD | |
| preset: linux64-deploy | |
| secrets: inherit | |
| build-macos: | |
| name: Build macOS (GeneralsMD) | |
| needs: detect-changes | |
| if: needs.detect-changes.outputs.should-build == 'true' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/build-macos.yml | |
| with: | |
| game: GeneralsMD | |
| preset: macos-vulkan | |
| secrets: inherit | |
| build-windows: | |
| name: Build Windows Modern (GeneralsMD) | |
| needs: detect-changes | |
| if: needs.detect-changes.outputs.should-build == 'true' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/build-windows.yml | |
| with: | |
| game: GeneralsMD | |
| preset: win64-modern | |
| secrets: inherit | |
| ci-summary: | |
| name: CI Summary | |
| runs-on: ubuntu-latest | |
| needs: [build-linux, build-macos, build-windows] | |
| if: always() | |
| steps: | |
| - name: Generate Summary | |
| run: | | |
| echo "### ✅ GeneralsX Multi-Platform Build Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "| Platform | Status |" >> $GITHUB_STEP_SUMMARY | |
| echo "|----------|--------|" >> $GITHUB_STEP_SUMMARY | |
| echo "| Linux (x86_64) | ${{ needs.build-linux.result == 'success' && '✅ Success' || needs.build-linux.result == 'cancelled' && '⏭️ Skipped' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| macOS (arm64) | ${{ needs.build-macos.result == 'success' && '✅ Success' || needs.build-macos.result == 'cancelled' && '⏭️ Skipped' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Windows (x64/modern) | ${{ needs.build-windows.result == 'success' && '✅ Success' || needs.build-windows.result == 'cancelled' && '⏭️ Skipped' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY | |
| - name: Fail if Any Build Failed | |
| if: | | |
| needs.build-linux.result == 'failure' || | |
| needs.build-macos.result == 'failure' || | |
| needs.build-windows.result == 'failure' | |
| run: exit 1 | |