| 1 | name: Build raylib examples - Windows |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | paths: |
| 7 | - 'src/**' |
| 8 | - 'examples/**' |
| 9 | - '.github/workflows/windows_examples.yml' |
| 10 | pull_request: |
| 11 | branches: [ master ] |
| 12 | paths: |
| 13 | - 'src/**' |
| 14 | - 'examples/**' |
| 15 | - '.github/workflows/windows_examples.yml' |
| 16 | |
| 17 | permissions: |
| 18 | contents: read |
| 19 | |
| 20 | jobs: |
| 21 | build: |
| 22 | runs-on: windows-latest |
| 23 | |
| 24 | steps: |
| 25 | - uses: actions/checkout@v4 |
| 26 | |
| 27 | - name: Add MSBuild to PATH |
| 28 | uses: microsoft/setup-msbuild@v1 |
| 29 | |
| 30 | - name: Build Library (MSVC16) |
| 31 | run: | |
| 32 | cd projects/VS2019 |
| 33 | msbuild.exe raylib.sln /property:Configuration=Release /property:Platform=x86 |
| 34 | cd ../.. |
| 35 | shell: cmd |
| 36 |