build-macos #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-macos | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - runner: macos-15-intel | |
| homebrew_prefix: /usr/local | |
| artifact: macos-intel | |
| - runner: macos-15 | |
| homebrew_prefix: /opt/homebrew | |
| artifact: macos-arm64 | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| brew update | |
| brew install ninja mpv qt@6 || true | |
| - name: Release build | |
| run: | | |
| cmake -B build -G Ninja -DQTROOT=${{ matrix.homebrew_prefix }}/opt/qt@6 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=output -DCHECK_FOR_UPDATES=ON -DUSE_STATIC_MPVQT=ON .. | |
| cmake --build build --target install | |
| - name: Sign and create dmg | |
| run: | | |
| codesign --force --deep -s - "./build/output/Jellyfin Desktop.app/" | |
| brew install create-dmg | |
| create-dmg --volname "Jellyfin Desktop" --no-internet-enable "Jellyfin Desktop.dmg" "./build/output/Jellyfin Desktop.app" | |
| - name: Archive production artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: ${{ github.workspace }}/Jellyfin Desktop.dmg |