main.yml 778 B

1234567891011121314151617181920212223242526
  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: Windows, os: windows-latest }
  12. - { name: MacOS, os: macos-latest }
  13. steps:
  14. - name: Setup Linux dependencies
  15. if: runner.os == 'Linux'
  16. run: |
  17. sudo apt-get update
  18. sudo apt-get install cmake ninja-build
  19. - name: Get PhysicsFS sources
  20. uses: actions/checkout@v2
  21. - name: Configure CMake
  22. run: cmake -B build ${{ matrix.platform.flags }}
  23. - name: Build
  24. run: cmake --build build/