main.yml 1.7 KB

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