main.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: build
  2. on: [push]
  3. jobs:
  4. build:
  5. strategy:
  6. matrix:
  7. # windows builds may need to specify building 64bit target:
  8. # if [[ "$OSTYPE" == "msys" ]]; then export WINEXTRA="-DCMAKE_GENERATOR_PLATFORM=x64"; else export WINEXTRA=""; fi
  9. os: [macOS-latest]
  10. qt: [5.15.2]
  11. runs-on: ${{ matrix.os }}
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Install Qt ${{ matrix.qt }}
  15. uses: jurplel/install-qt-action@v2
  16. with:
  17. version: ${{ matrix.qt }}
  18. modules: "qtwebengine"
  19. - name: Install dependencies
  20. run: |
  21. brew update
  22. brew install ninja
  23. brew install ffmpeg --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes
  24. brew install mpv
  25. - name: Debug build and test
  26. run: |
  27. ./download_webclient.sh
  28. cd build
  29. cmake -GNinja -DQTROOT=$Qt5_DIR -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=output ..
  30. ninja install
  31. - name: Archive production artifacts
  32. uses: actions/upload-artifact@v2
  33. with:
  34. name: bundle.dmg
  35. path: ${{ github.workspace }}/build/output/Jellyfin\ Media\ Player.dmg