You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

  1. name: CI - Source & Examples - Windows
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: windows-latest
  6. strategy:
  7. fail-fast: false
  8. max-parallel: 1
  9. matrix:
  10. compiler: [mingw, msvc16]
  11. bits: [32, 64]
  12. include:
  13. - compiler: mingw
  14. bits: 32
  15. CFLAGS: -m32
  16. GENERATOR: "MinGW Makefiles"
  17. - compiler: mingw
  18. bits: 64
  19. CFLAGS: -m64
  20. GENERATOR: "MinGW Makefiles"
  21. - compiler: msvc16
  22. bits: 32
  23. GENERATOR: "Visual Studio 16 2019"
  24. ARCH: "-A Win32"
  25. - compiler: msvc16
  26. bits: 64
  27. GENERATOR: "Visual Studio 16 2019"
  28. ARCH: "-A x64"
  29. env:
  30. CFLAGS: ${{ matrix.CFLAGS }}
  31. steps:
  32. - name: Checkout
  33. uses: actions/checkout@master
  34. - name: Setup Environment
  35. run: |
  36. mkdir build
  37. cd build
  38. # Trying to solve an issue with CMake and Chocolatey for MinGW
  39. - run: cmake -E remove c:\ProgramData\chocolatey\bin\cpack.exe
  40. if: matrix.compiler == 'mingw'
  41. # Setup MSBuild.exe path if required
  42. - uses: warrenbuckley/Setup-MSBuild@v1
  43. if: matrix.compiler == 'msvc16'
  44. - name: Build MinGW Project
  45. run: |
  46. cd ../raylib/src
  47. make PLATFORM=PLATFORM_DESKTOP CC=gcc
  48. if: matrix.compiler == 'mingw'
  49. - name: Setup CMake Project
  50. run: cmake -G "${{ matrix.GENERATOR }}" ${{ matrix.ARCH }} -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=OFF -DINCLUDE_EVERYTHING=ON ../raylib
  51. if: matrix.compiler == 'msvc16'
  52. - name: Build raylib Source & Examples
  53. run: cmake --build . --target install
  54. if: matrix.compiler == 'msvc16'