main.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. grep -v libx /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cairo.rb | grep -v enable-x > _tmp
  23. mv _tmp /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cairo.rb
  24. brew install cairo --build-from-source
  25. brew install harfbuzz --build-from-source
  26. brew install libass --build-from-source
  27. brew install ffmpeg --build-from-source
  28. brew install ninja
  29. brew install mpv --build-from-source
  30. - name: Debug build and test
  31. run: |
  32. ./download_webclient.sh
  33. cd build
  34. cmake -GNinja -DQTROOT=$Qt5_DIR -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=output ..
  35. ninja install
  36. - name: Archive production artifacts
  37. uses: actions/upload-artifact@v2
  38. with:
  39. name: bundle.dmg
  40. path: ${{ github.workspace }}/build/output/Jellyfin\ Media\ Player.dmg