mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-12 08:36:22 +01:00
52 lines
2.4 KiB
YAML
52 lines
2.4 KiB
YAML
name: C/C++ CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: opensuse/leap:15.1
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Update Packages
|
|
run: zypper ref
|
|
- name: Install Packages
|
|
run: zypper --non-interactive --gpg-auto-import-keys install lsb-release rpm-build git tar make cmake gcc gcc-c++ gettext-tools glibc-devel libboost_headers-devel boost-devel glib2-devel glib2-tools dbus-1-devel alsa-devel libnotify-devel libgnutls-devel protobuf-devel sqlite3-devel libpulse-devel gstreamer-devel gstreamer-plugins-base-devel libxine-devel vlc-devel taglib-devel libQt5Core-devel libQt5Gui-devel libQt5Widgets-devel libQt5Concurrent-devel libQt5Network-devel libQt5Sql-devel libQt5DBus-devel libQt5Test-devel libqt5-qtx11extras-devel libqt5-qtbase-common-devel libQt5Sql5-sqlite libqt5-linguist-devel libcdio-devel libgpod-devel libplist-devel libmtp-devel libusbmuxd-devel libchromaprint-devel desktop-file-utils update-desktop-files appstream-glib hicolor-icon-theme
|
|
- name: Create Build Environment
|
|
run: mkdir -p build
|
|
- name: Configure CMake
|
|
working-directory: build
|
|
shell: bash
|
|
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
- name: Build
|
|
working-directory: build
|
|
shell: bash
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Unlink python
|
|
run: brew unlink python@2
|
|
- name: Install Packages
|
|
run: brew install glib pkgconfig boost libffi protobuf protobuf-c qt gettext gnutls fftw sqlite chromaprint gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav libcdio libmtp libimobiledevice libplist create-dmg
|
|
- name: Create Build Environment
|
|
run: cmake -E make_directory ${{runner.workspace}}/build
|
|
- name: Configure CMake
|
|
env:
|
|
Qt5_DIR: /usr/local/opt/qt5/lib/cmake
|
|
Qt5LinguistTools_DIR: /usr/local/opt/qt5/lib/cmake/Qt5LinguistTools
|
|
working-directory: ${{runner.workspace}}/build
|
|
shell: bash
|
|
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DUSE_BUNDLE=ON
|
|
- name: Build
|
|
working-directory: ${{runner.workspace}}/build
|
|
shell: bash
|
|
run: cmake --build . --config $BUILD_TYPE
|
|
- name: Install
|
|
working-directory: ${{runner.workspace}}/build
|
|
shell: bash
|
|
run: make install
|