main.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 mpv --HEAD
  24. - name: Debug build and test
  25. run: |
  26. ./download_webclient.sh
  27. cd build
  28. cmake -GNinja -DQTROOT=$Qt5_DIR -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=output ..
  29. ninja install
  30. - name: Archive production artifacts
  31. uses: actions/upload-artifact@v2
  32. with:
  33. name: bundle.dmg
  34. path: ${{ github.workspace }}/build/output/Jellyfin\ Media\ Player.dmg