1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-12 08:36:22 +01:00
strawberry-audio-player-win.../.github/workflows/ccpp.yml

52 lines
2.4 KiB
YAML
Raw Normal View History

2019-11-24 20:04:05 +01:00
name: C/C++ CI
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
2020-04-08 01:15:39 +02:00
container:
image: opensuse/tumbleweed
2019-11-24 20:04:05 +01:00
steps:
- uses: actions/checkout@v1
2019-12-30 00:49:39 +01:00
- name: Update Packages
2020-04-08 01:15:39 +02:00
run: zypper ref
2019-11-24 20:04:05 +01:00
- name: Install Packages
2020-04-08 01:15:39 +02:00
run: zypper --non-interactive --gpg-auto-import-keys install lsb-release rpm-build rpmdevtools git tar make cmake gcc gcc-c++ pkg-config 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
2019-11-24 20:04:05 +01:00
- name: Create Build Environment
2020-04-08 01:15:39 +02:00
run: mkdir -p build
2019-11-24 20:04:05 +01:00
- name: Configure CMake
2020-04-08 01:15:39 +02:00
working-directory: build
2019-11-24 20:04:05 +01:00
shell: bash
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
2020-04-08 01:15:39 +02:00
working-directory: build
2019-11-24 20:04:05 +01:00
shell: bash
run: cmake --build . --config $BUILD_TYPE
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
2019-12-30 00:49:39 +01:00
- name: Unlink python
run: brew unlink python@2
2019-11-24 20:04:05 +01:00
- 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