. #4507
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
release: | |
types: [published] | |
jobs: | |
build-openmandriva: | |
name: Build OpenMandriva | |
if: github.repository != 'strawberrymusicplayer/strawberry-private' && github.ref != 'refs/heads/l10n_master' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
openmandriva_version: [ "cooker" ] | |
container: | |
image: openmandriva/${{matrix.openmandriva_version}} | |
steps: | |
- name: Update distro | |
run: dnf distro-sync --assumeyes | |
- name: Install dependencies | |
run: > | |
dnf install -y | |
which | |
glibc | |
gcc-c++ | |
git | |
gnutar | |
make | |
cmake | |
lsb-release | |
rpmdevtools | |
rpm-build | |
glibc-devel | |
lib64glib2.0-devel | |
lib64boost-core-devel | |
lib64sqlite3-devel | |
libasound-devel | |
lib64pulseaudio-devel | |
lib64gstreamer-devel | |
lib64taglib-devel | |
lib64chromaprint-devel | |
lib64ebur128-devel | |
lib64fftw-devel | |
lib64icu-devel | |
lib64cdio-devel | |
lib64gpod-devel | |
lib64mtp-devel | |
lib64Qt6Core-devel | |
lib64Qt6Concurrent-devel | |
lib64Qt6Network-devel | |
lib64Qt6Sql-devel | |
lib64Qt6DBus-devel | |
lib64Qt6Gui-devel | |
lib64Qt6Widgets-devel | |
lib64Qt6Test-devel | |
lib64kdsingleapplication-devel | |
lib64xkbcommon-devel | |
lib64gtest-devel | |
lib64gmock-devel | |
sparsehash-devel | |
qt6-cmake | |
qt6-qtbase-tools | |
qt6-qttools-linguist | |
desktop-file-utils | |
appstream | |
appstream-util | |
hicolor-icon-theme | |
- name: Remove files | |
run: rm -rf /usr/lib64/qt6/lib/cmake/Qt6Sql/{Qt6QMYSQL*,Qt6QODBCD*,Qt6QPSQL*,Qt6QIBase*} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Add safe git directory | |
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
- name: Create Build Environment | |
run: cmake -E make_directory build | |
- name: Configure CMake | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_WERROR=ON | |
- name: Create source tarball | |
working-directory: build | |
run: ../dist/scripts/maketarball.sh | |
- name: Create RPM build sources directories | |
working-directory: build | |
run: mkdir -p ~/rpmbuild/SOURCES /usr/src/packages/SOURCES | |
- name: Copy source tarball | |
working-directory: build | |
run: cp strawberry-*.tar.xz ~/rpmbuild/SOURCES/ | |
- name: Build RPM | |
env: | |
RPM_BUILD_NCPUS: 4 | |
working-directory: build | |
run: rpmbuild -ba strawberry.spec | |
- name: Upload artifacts | |
if: matrix.openmandriva_version != 'cooker' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: openmandriva-${{matrix.openmandriva_version}} | |
path: | | |
/github/home/rpmbuild/SRPMS/*.rpm | |
/github/home/rpmbuild/RPMS/x86_64/*.rpm | |
build-mageia: | |
name: Build Mageia | |
if: github.repository != 'strawberrymusicplayer/strawberry-private' && github.ref != 'refs/heads/l10n_master' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
mageia_version: [ '9' ] | |
container: | |
image: mageia:${{matrix.mageia_version}} | |
steps: | |
- name: Update repositories | |
run: urpmi.update -a | |
- name: Upgrade packages | |
run: urpmi --auto --auto-update | |
- name: Install dependencies | |
run: > | |
urpmi --auto --force urpmi-debuginfo-install | |
git | |
glibc | |
gcc-c++ | |
binutils | |
make | |
cmake | |
man | |
tar | |
rpmdevtools | |
lib64boost-devel | |
lib64sqlite3-devel | |
lib64alsa2-devel | |
lib64pulseaudio-devel | |
lib64gstreamer1.0-devel | |
lib64gstreamer-plugins-base1.0-devel | |
lib64cdio-devel | |
lib64gpod-devel | |
lib64mtp-devel | |
lib64taglib-devel | |
lib64chromaprint-devel | |
lib64ebur128-devel | |
lib64icu-devel | |
lib64fftw-devel | |
lib64dbus-devel | |
lib64appstream-devel | |
lib64qt6core-devel | |
lib64qt6gui-devel | |
lib64qt6widgets-devel | |
lib64qt6network-devel | |
lib64qt6concurrent-devel | |
lib64qt6sql-devel | |
lib64qt6dbus-devel | |
lib64qt6help-devel | |
lib64qt6test-devel | |
lib64sparsehash-devel | |
desktop-file-utils | |
appstream-util | |
hicolor-icon-theme | |
gtest | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Add safe git directory | |
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} | |
- name: Create Build Environment | |
run: cmake -E make_directory build | |
- name: Configure CMake | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_WERROR=ON | |
- name: Create source tarball | |
working-directory: build | |
run: ../dist/scripts/maketarball.sh | |
- name: Create RPM build sources directories | |
working-directory: build | |
run: mkdir -p ~/rpmbuild/SOURCES /usr/src/packages/SOURCES | |
- name: Copy source tarball | |
working-directory: build | |
run: cp strawberry-*.tar.xz ~/rpmbuild/SOURCES/ | |
- name: Build RPM | |
env: | |
RPM_BUILD_NCPUS: 4 | |
working-directory: build | |
run: rpmbuild -ba strawberry.spec | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mageia-${{matrix.mageia_version}} | |
path: | | |
/github/home/rpmbuild/SRPMS/*.rpm | |
/github/home/rpmbuild/RPMS/x86_64/*.rpm | |