mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 00:17:49 +00:00
100 lines
5.7 KiB
YAML
100 lines
5.7 KiB
YAML
version: 2.0
|
|
jobs:
|
|
build_ubuntu_bionic:
|
|
docker:
|
|
- image: ubuntu:bionic
|
|
steps:
|
|
- run: apt-get update
|
|
- run: DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles" apt-get install -y git ssh sshpass build-essential clang cmake libboost-thread1.65-dev libboost-system1.65-dev libboost-filesystem1.65-dev libboost-date-time1.65-dev libboost-atomic1.65-dev libboost-chrono1.65-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libssl-dev libtag1-dev libsystemd-dev
|
|
- checkout
|
|
- run: cmake -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_PLATFORM=ubuntu -DDEB_DISTRO=bionic -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
|
|
- run: make -j2
|
|
- run: make package
|
|
- run: ./script/copy-artifacts-to-host.sh /root/project/*.deb
|
|
- run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
|
|
- store_artifacts:
|
|
path: /root/debs/
|
|
build_ubuntu_focal:
|
|
docker:
|
|
- image: ubuntu:focal
|
|
steps:
|
|
- run: apt-get update
|
|
- run: DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles" apt-get install -y git ssh sshpass build-essential clang cmake libboost-thread1.71-dev libboost-system1.71-dev libboost-filesystem1.71-dev libboost-date-time1.71-dev libboost-atomic1.71-dev libboost-chrono1.71-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libssl-dev libtag1-dev libsystemd-dev
|
|
- checkout
|
|
- run: cmake -DENABLE_PCH=true -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_PLATFORM=ubuntu -DDEB_DISTRO=focal -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
|
|
- run: make -j2
|
|
- run: make package
|
|
- run: ./script/copy-artifacts-to-host.sh /root/project/*.deb
|
|
- run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
|
|
- store_artifacts:
|
|
path: /root/debs/
|
|
build_ubuntu_groovy:
|
|
docker:
|
|
- image: ubuntu:groovy
|
|
steps:
|
|
- run: apt-get update
|
|
- run: DEBIAN_FRONTEND="noninteractive" TZ="America/Los_Angeles" apt-get install -y git ssh sshpass build-essential clang cmake libboost-thread1.71-dev libboost-system1.71-dev libboost-filesystem1.71-dev libboost-date-time1.71-dev libboost-atomic1.71-dev libboost-chrono1.71-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libssl-dev libtag1-dev libsystemd-dev
|
|
- checkout
|
|
- run: cmake -DENABLE_PCH=true -DGENERATE_DEB=1 -DDEB_ARCHITECTURE=amd64 -DDEB_PLATFORM=ubuntu -DDEB_DISTRO=groovy -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
|
|
- run: make -j2
|
|
- run: make package
|
|
- run: ./script/copy-artifacts-to-host.sh /root/project/*.deb
|
|
- run: mkdir -p /root/debs && mv /root/project/*.deb /root/debs/
|
|
- store_artifacts:
|
|
path: /root/debs/
|
|
build_fedora_31:
|
|
docker:
|
|
- image: fedora:31
|
|
steps:
|
|
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm git openssh-clients sshpass rpm-build rpmdevtools 'dnf-command(builddep)'
|
|
- checkout
|
|
- run: dnf builddep -y musikcube.spec
|
|
- run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
|
|
- run: ./script/run-rpm-build.sh
|
|
- run: ./script/copy-artifacts-to-host.sh /root/rpmbuild/RPMS/x86_64/*.rpm
|
|
- run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
|
|
- store_artifacts:
|
|
path: /root/rpms/
|
|
build_fedora_32:
|
|
docker:
|
|
- image: fedora:32
|
|
steps:
|
|
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm git openssh-clients sshpass rpm-build rpmdevtools 'dnf-command(builddep)'
|
|
- checkout
|
|
- run: dnf builddep -y musikcube.spec
|
|
- run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
|
|
- run: ./script/run-rpm-build.sh
|
|
- run: ./script/copy-artifacts-to-host.sh /root/rpmbuild/RPMS/x86_64/*.rpm
|
|
- run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
|
|
- store_artifacts:
|
|
path: /root/rpms/
|
|
build_fedora_33:
|
|
docker:
|
|
- image: fedora:33
|
|
steps:
|
|
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm git openssh-clients sshpass rpm-build rpmdevtools 'dnf-command(builddep)'
|
|
- checkout
|
|
- run: dnf builddep -y musikcube.spec
|
|
- run: mkdir -p /root/rpmbuild/SOURCES && spectool -g -R musikcube.spec
|
|
- run: ./script/run-rpm-build.sh
|
|
- run: ./script/copy-artifacts-to-host.sh /root/rpmbuild/RPMS/x86_64/*.rpm
|
|
- run: mkdir -p /root/rpms && mv /root/rpmbuild/RPMS/x86_64/*.rpm /root/rpms/
|
|
- store_artifacts:
|
|
path: /root/rpms/
|
|
workflow_filters: &workflow_filters
|
|
filters:
|
|
branches:
|
|
only:
|
|
- build
|
|
|
|
workflows:
|
|
version: 2
|
|
build_and_package:
|
|
jobs:
|
|
- build_ubuntu_bionic: *workflow_filters
|
|
- build_ubuntu_focal: *workflow_filters
|
|
- build_ubuntu_groovy: *workflow_filters
|
|
- build_fedora_31: *workflow_filters
|
|
- build_fedora_32: *workflow_filters
|
|
- build_fedora_33: *workflow_filters
|