main.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:
  10. - { name: Windows, os: windows-latest }
  11. - { name: Linux, os: ubuntu-20.04, flags: -GNinja }
  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 wayland-protocols \
  19. pkg-config \
  20. ninja-build \
  21. libasound2-dev \
  22. libdbus-1-dev \
  23. libegl1-mesa-dev \
  24. libgl1-mesa-dev \
  25. libgles2-mesa-dev \
  26. libglu1-mesa-dev \
  27. libibus-1.0-dev \
  28. libpulse-dev \
  29. libsdl2-2.0-0 \
  30. libsndio-dev \
  31. libudev-dev \
  32. libwayland-dev \
  33. libwayland-client++0 \
  34. wayland-scanner++ \
  35. libwayland-cursor++0 \
  36. libx11-dev \
  37. libxcursor-dev \
  38. libxext-dev \
  39. libxi-dev \
  40. libxinerama-dev \
  41. libxkbcommon-dev \
  42. libxrandr-dev \
  43. libxss-dev \
  44. libxt-dev \
  45. libxv-dev \
  46. libxxf86vm-dev \
  47. libdrm-dev \
  48. libgbm-dev\
  49. libpulse-dev
  50. - uses: actions/checkout@v2
  51. - name: Configure CMake
  52. run: cmake -B build ${{ matrix.platform.flags }}
  53. - name: Build
  54. run: cmake --build build/