Skip to content

Windows sdl

Windows sdl #16

Workflow file for this run

name: GeneralsX CI
permissions:
contents: read
pull-requests: read
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:

Check failure on line 56 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / GeneralsX CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 56, Col: 3): Error calling workflow 'fbraz3/GeneralsX/.github/workflows/build-linux.yml@c03750e74a892f6f9fbe33366d87bd100c0fd50c'. The workflow is requesting 'pull-requests: write', but is only allowed 'pull-requests: read'.
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