name: all on: [push] jobs: build_mac: name: Build runs-on: macos-10.15 steps: - name: Install dependencies run: > brew install boost chromaprint cmake cryptopp fftw glew glib google-sparsehash gst-libav gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly gstreamer pkgconfig protobuf protobuf-c qt - name: Install liblastfm run: brew install https://raw.githubusercontent.com/tomahawk-player/homebrew-tomahawkqt5/master/liblastfm.rb - name: Fix liblastfm includes run: ln -s /usr/local/include/lastfm /usr/local/include/lastfm5 - uses: actions/checkout@v2 - name: cmake env: PKG_CONFIG_PATH: /usr/local/lib/pkgconfig Qt5_DIR: /usr/local/opt/qt5/lib/cmake/Qt5 Qt5LinguistTools_DIR: /usr/local/opt/qt5/lib/cmake/Qt5LinguistTools GST_SCANNER_PATH: /usr/local/opt/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner GST_PLUGIN_PATH: /usr/local/lib/gstreamer-1.0 working-directory: bin run: > cmake .. -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64 -DGETTEXT_MSGMERGE_EXECUTABLE=/usr/local/opt/gettext/bin/msgmerge -DGETTEXT_MSGFMT_EXECUTABLE=/usr/local/opt/gettext/bin/msgfmt -DGETTEXT_XGETTEXT_EXECUTABLE=/usr/local/opt/gettext/bin/xgettext - name: make working-directory: bin run: make -j2 - name: Copy icon files and resources working-directory: bin run: make install - name: Build DMG working-directory: bin run: make dmg - uses: actions/upload-artifact@v2 with: name: release/mac path: bin/clementine-*.dmg