bouquet: fix overzealous channel removals in merged multi-network setup #150
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 Tvheadend Repo | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: '.github' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-raspberry: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
name: Build on Raspberry Pi ${{ matrix.arch }} | |
env: | |
GITHUB_ENV: CLOUDSMITH_API_KEY | |
CLOUDSMITH_ORG: ${{ vars.CLOUDSMITH_ORG }} | |
CLOUDSMITH_REPO: ${{ vars.CLOUDSMITH_REPO }} | |
CLOUDSMITH_OWNER: ${{ secrets.CLOUDSMITH_OWNER }} | |
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_KEY }} | |
NODIRTY: ${{ secrets.NODIRTY }} | |
strategy: | |
matrix: | |
arch: [armv6l, armv7l, aarch64] | |
include: | |
- arch: armv6l | |
cpu: arm1176 | |
base_image: raspios_lite:latest | |
cpu_info: cpuinfo/raspberrypi_zero_w | |
- arch: armv7l | |
cpu: cortex-a7 | |
base_image: raspios_lite:latest | |
cpu_info: cpuinfo/raspberrypi_3b | |
- arch: aarch64 | |
cpu: cortex-a53 | |
base_image: raspios_lite_arm64:latest | |
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pguyot/arm-runner-action@v2 | |
with: | |
base_image: ${{ matrix.base_image }} | |
cpu: ${{ matrix.cpu }} | |
cpu_info: ${{ matrix.cpu_info }} | |
image_additional_mb: 10000 | |
copy_artifact_path: ../tvheadend*.deb | |
import_github_env: true | |
commands: | | |
sudo apt-get update -y | |
sudo apt-get install --force-yes -y cmake git build-essential pkg-config gettext libavahi-client-dev libssl-dev zlib1g-dev wget bzip2 git-core liburiparser-dev libdvbcsa-dev python3 python3-requests debhelper ccache lsb-release | |
DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y libpcre3-dev || DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y libpcre2-dev | |
AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\ --enable-ffmpeg_static\ --enable-hdhomerun_static\ --python=python3 ./Autobuild.sh -p raspios | |
support/cloudsmith.sh -p raspios -f '../tvheadend*.deb' | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Tvheadend-deb | |
path: tvheadend*.deb | |
if-no-files-found: error | |
build-crosscompile: | |
# The host should always be linux | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
name: Build on ${{ matrix.distro }} ${{ matrix.arch }} | |
# Run steps on a matrix | |
strategy: | |
matrix: | |
arch: [ armv7, aarch64] | |
distro: [ stretch, buster, bullseye, bookworm, ubuntu16.04, ubuntu18.04, ubuntu20.04, ubuntu22.04, ubuntu_latest ] | |
include: | |
- arch: armv6 | |
distro: jessie | |
- arch: armv6 | |
distro: stretch | |
- arch: armv6 | |
distro: buster | |
- arch: armv6 | |
distro: bullseye | |
- arch: armv7 | |
distro: jessie | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: uraimo/run-on-arch-action@v2 | |
name: Build artifact | |
id: build | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ${{ matrix.distro }} | |
# Not required, but speeds up builds | |
githubToken: ${{ github.token }} | |
# Create an artifacts directory | |
setup: | | |
mkdir -p "${PWD}/artifacts" | |
# Mount the artifacts directory as /artifacts in the container | |
dockerRunArgs: | | |
--volume "${PWD}/artifacts:/artifacts" | |
# Pass some environment variables to the container | |
env: | # YAML, but pipe character is necessary | |
artifact_name: git-${{ matrix.distro }}_${{ matrix.arch }} | |
CLOUDSMITH_ORG: ${{ vars.CLOUDSMITH_ORG }} | |
CLOUDSMITH_REPO: ${{ vars.CLOUDSMITH_REPO }} | |
CLOUDSMITH_OWNER: ${{ secrets.CLOUDSMITH_OWNER }} | |
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_KEY }} | |
NODIRTY: ${{ secrets.NODIRTY }} | |
# The shell to run commands with in the container | |
shell: /bin/sh | |
# Install some dependencies in the container. This speeds up builds if | |
# you are also using githubToken. Any dependencies installed here will | |
# be part of the container image that gets cached, so subsequent | |
# builds don't have to re-install them. The image layer is cached | |
# publicly in your project's package repository, so it is vital that | |
# no secrets are present in the container state or logs. | |
install: | | |
if [ '${{ matrix.distro }}' = 'jessie' ]; then sed -i 's/archive.raspbian.org/legacy.raspbian.org/g' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'jessie' ]; then sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'jessie' ]; then sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'jessie' ]; then sed -i '/jessie-updates/d' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'stretch' ]; then sed -i 's/archive.raspbian.org/legacy.raspbian.org/g' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'stretch' ]; then sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'stretch' ]; then sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list; fi | |
if [ '${{ matrix.distro }}' = 'stretch' ]; then sed -i '/stretch-updates/d' /etc/apt/sources.list; fi | |
case "${{ matrix.distro }}" in | |
ubuntu*|jessie|stretch|buster|bullseye|bookworm|trixie) | |
apt-get update -y | |
DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y cmake git build-essential pkg-config gettext libavahi-client-dev libssl-dev zlib1g-dev wget bzip2 git-core liburiparser-dev libdvbcsa-dev python3 python3-requests debhelper ccache lsb-release | |
DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y libpcre3-dev || DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y libpcre2-dev | |
;; | |
fedora*) | |
dnf -y update | |
dnf -y install git which | |
;; | |
alpine*) | |
apk update | |
apk add git | |
;; | |
esac | |
# Produce a binary artifact | |
run: | | |
git config --global --add safe.directory /home/runner/work/tvheadend/tvheadend || true | |
AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\ --enable-ffmpeg_static\ --enable-hdhomerun_static\ --python=python3 ./Autobuild.sh | |
cp ../tvheadend*.deb /artifacts/ | |
if [ '${{ matrix.distro }}' = 'buster' ] && [ '${{ matrix.arch }}' = 'armv7' ]; then update-ca-certificates --fresh; fi | |
support/cloudsmith.sh -f '../tvheadend*.deb' | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Tvheadend-deb | |
path: artifacts/tvheadend*.deb | |
if-no-files-found: error | |
build-deb-native: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
name: Build on native ${{ matrix.container }} | |
strategy: | |
matrix: | |
container: ["i386/ubuntu:trusty", "ubuntu:trusty", "i386/ubuntu:xenial", "ubuntu:xenial", "ubuntu:bionic", "ubuntu:focal", "ubuntu:jammy", "ubuntu:noble", "i386/debian:stretch", "debian:stretch", "i386/debian:buster", "debian:buster", "i386/debian:bullseye", "debian:bullseye", "i386/debian:bookworm", "debian:bookworm", "i386/debian:trixie", "debian:trixie", "i386/debian:sid", "debian:sid"] | |
container: | |
image: ${{ matrix.container }} | |
env: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
steps: | |
- name: Fix old debian apt | |
if: matrix.container == 'debian:stretch' || matrix.container == 'i386/debian:stretch' | |
run: | | |
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list | |
sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list | |
sed -i '/stretch-updates/d' /etc/apt/sources.list | |
- name: Add git ppa | |
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'i386/ubuntu') | |
run: | | |
apt-get update -y | |
DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y software-properties-common | |
add-apt-repository ppa:git-core/ppa -y | |
- name: dependencies | |
run: | | |
apt-get update -y | |
DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y cmake git build-essential pkg-config gettext libavahi-client-dev libssl-dev zlib1g-dev wget bzip2 git-core liburiparser-dev libdvbcsa-dev python3 python3-requests debhelper ccache lsb-release | |
- name: pcre-dependency | |
run: | | |
DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y libpcre3-dev || DEBIAN_FRONTEND=noninteractive apt-get install --force-yes -y libpcre2-dev | |
- uses: actions/checkout@v3 | |
if: startsWith(matrix.container, 'i386') != true && matrix.container != 'debian:stretch' | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v1 | |
if: startsWith(matrix.container, 'i386') || matrix.container == 'debian:stretch' | |
- name: Workaround safe directory | |
run: git config --global --add safe.directory /__w/tvheadend/tvheadend | |
- name: build | |
run: AUTOBUILD_CONFIGURE_EXTRA=--enable-ccache\ --enable-ffmpeg_static\ --enable-hdhomerun_static\ --python=python3 ./Autobuild.sh ${{ (startsWith(matrix.container, 'i386') && '-a i386') || '' }} | |
env: | |
NODIRTY: ${{ secrets.NODIRTY }} | |
- name: copy-result | |
run: cp ../tvheadend*.deb . | |
- uses: actions/upload-artifact@v3 | |
if: startsWith(matrix.container, 'i386') != true | |
with: | |
name: Tvheadend-deb | |
path: tvheadend*.deb | |
if-no-files-found: error | |
- name: upload-cloudsmith | |
run: support/cloudsmith.sh -f 'tvheadend*.deb' | |
env: | |
CLOUDSMITH_ORG: ${{ vars.CLOUDSMITH_ORG }} | |
CLOUDSMITH_REPO: ${{ vars.CLOUDSMITH_REPO }} | |
CLOUDSMITH_OWNER: ${{ secrets.CLOUDSMITH_OWNER }} | |
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_KEY }} | |
build-rpm-native: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
name: Build on native fedora:${{ matrix.releasever }} | |
strategy: | |
matrix: | |
releasever: ["37", "38", "39", "rawhide"] | |
container: | |
image: "fedora:${{ matrix.releasever }}" | |
steps: | |
- name: rpmfusion-free | |
run: | | |
dnf install -y "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-${{matrix.releasever}}.noarch.rpm" | |
- name: dependencies | |
run: | | |
dnf install -y gcc-c++ gcc-c++ which rpm-build rpmdevtools git make cmake gettext-devel dbus-devel avahi-devel openssl-devel zlib-devel libdvbcsa-devel wget bzip2 uriparser-devel pcre2-devel python python-requests ccache systemd-units systemd-devel | |
dnf install -y openssl-devel-engine || true | |
- uses: actions/checkout@v1 | |
- name: Workaround safe directory | |
run: git config --global --add safe.directory /__w/tvheadend/tvheadend | |
- name: build | |
run: ./configure --disable-dvbscan --disable-libfdkaac_static --disable-ffmpeg_static --disable-hdhomerun_static --disable-libfdkaac_static --disable-libopus_static --disable-libtheora_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --enable-libfdkaac --enable-hdhomerun_client --enable-libsystemd_daemon --python=/usr/bin/python3 && make -C rpm build | |
- name: copy-result | |
run: cp rpm/RPMS/*/tvheadend*.rpm . | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Tvheadend-RPM | |
path: tvheadend*.rpm | |
if-no-files-found: error | |
- name: upload-cloudsmith | |
run: support/cloudsmith.sh -f 'tvheadend*.rpm' | |
env: | |
CLOUDSMITH_ORG: ${{ vars.CLOUDSMITH_ORG }} | |
CLOUDSMITH_REPO: ${{ vars.CLOUDSMITH_REPO }} | |
CLOUDSMITH_OWNER: ${{ secrets.CLOUDSMITH_OWNER }} | |
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_KEY }} |