🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
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.

30 lines
1.0 KiB

  1. name: Build
  2. on: [push, pull_request]
  3. jobs:
  4. Build:
  5. name: ${{ matrix.platform.name }}
  6. runs-on: ${{ matrix.platform.os }}
  7. strategy:
  8. matrix:
  9. platform: # !!! FIXME: figure out an efficient way to get SDL2 on the Windows/Mac bots.
  10. - { name: Linux, os: ubuntu-20.04, flags: -GNinja }
  11. - { name: MinGW, os: windows-latest, flags: -GNinja -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_SYSTEM_NAME=Windows }
  12. - { name: Windows, os: windows-latest }
  13. - { name: MacOS, os: macos-latest }
  14. steps:
  15. - name: Setup Linux dependencies
  16. if: runner.os == 'Linux'
  17. run: |
  18. sudo apt-get update
  19. sudo apt-get install ninja-build
  20. - name: Setup MinGW dependencies
  21. if: contains(matrix.platform.name, 'MinGW')
  22. run: choco install ninja
  23. - name: Get PhysicsFS sources
  24. uses: actions/checkout@v2
  25. - name: Configure CMake
  26. run: cmake -B build ${{ matrix.platform.flags }}
  27. - name: Build
  28. run: cmake --build build/