Add Fedora 31 job

This commit is contained in:
John Maguire 2020-05-15 06:23:10 +01:00
parent 6a5cb0712d
commit d7c1431193
1 changed files with 70 additions and 4 deletions

View File

@ -2,6 +2,73 @@ name: all
on: [push]
jobs:
build_fedora_31:
name: Build Fedora 31 RPM
runs-on: ubuntu-18.04
container:
image: fedora:31
env:
RPM_BUILD_NCPUS: "2"
steps:
- name: Install dependencies
run: >
dnf install --assumeyes
@development-tools
alsa-lib-devel
boost-devel
cmake
cryptopp-devel
dbus-devel
desktop-file-utils
fftw-devel
gcc-c++
gettext
git
glew-devel
gstreamer1-devel
gstreamer1-plugins-base-devel
hicolor-icon-theme
libappstream-glib
libcdio-devel
libchromaprint-devel
libgpod-devel
liblastfm-qt5-devel
libmtp-devel
libnotify-devel
openssh
pkgconfig
protobuf-compiler
protobuf-devel
pulseaudio-libs-devel
qca-qt5-devel
qca-qt5-ossl
qt5-devel
rpmdevtools
sha2-devel
sparsehash-devel
sqlite-devel
taglib-devel
tar
- uses: actions/checkout@v1.2.0
- name: cmake
working-directory: bin
run: cmake ..
- name: Build source tarball
working-directory: bin
run: ../dist/maketarball.sh
- name: Create rpmbuild directory
run: mkdir -p ~/rpmbuild/SOURCES
- name: Move source tarball
working-directory: bin
run: mv clementine-*.tar.xz ~/rpmbuild/SOURCES
- name: Build RPM
working-directory: bin
run: rpmbuild -ba ../dist/clementine.spec
- uses: actions/upload-artifact@v2
with:
name: release_fedora_31
path: ~/rpmbuild/RPMS/*/clementine-*.rpm
build_mingw:
name: Build Windows Installer
runs-on: ubuntu-18.04
@ -12,7 +79,7 @@ jobs:
steps:
- name: Fix liblastfm includes
run: ln -s /target/include/lastfm /target/include/lastfm5
- uses: actions/checkout@v2
- uses: actions/checkout@v1.2.0
- name: cmake
working-directory: bin
run: >
@ -231,7 +298,7 @@ jobs:
qttools5-dev-tools
qttools5-dev
ssh
- uses: actions/checkout@v2
- uses: actions/checkout@v1.2.0
- name: cmake
working-directory: bin
run: >
@ -278,7 +345,7 @@ jobs:
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
- uses: actions/checkout@v1.2.0
- name: cmake
env:
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
@ -308,4 +375,3 @@ jobs:
with:
name: release_mac
path: bin/clementine-*.dmg