From 367cecf2994088526babf54abfbbf3c37c8665a6 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 25 Aug 2020 18:05:58 +0100 Subject: [PATCH] Revert "Disable mac build" This reverts commit d131c66f028b6326ab195afc4bb16bc71e7c3b24. --- .github/workflows/all.yml | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index b5c3065e4..652449d30 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -84,6 +84,7 @@ jobs: - build_fedora_31 - build_fedora_32 - build_focal_64 + - build_mac - build_mingw - build_source - build_stretch_64 @@ -790,3 +791,63 @@ jobs: with: name: release_focal_64 path: bin/clementine_*.deb + + build_mac: + name: Build Mac DMG + 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@v1.2.0 + - 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