main.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 libx11 /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 ffmpeg --build-from-source
  27. brew install ninja
  28. brew install mpv --build-from-source
  29. - name: Debug build and test
  30. run: |
  31. ./download_webclient.sh
  32. cd build
  33. cmake -GNinja -DQTROOT=$Qt5_DIR -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=output ..
  34. ninja install
  35. - name: Archive production artifacts
  36. uses: actions/upload-artifact@v2
  37. with:
  38. name: bundle.dmg
  39. path: ${{ github.workspace }}/build/output/Jellyfin\ Media\ Player.dmg