Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 85 additions & 22 deletions .github/workflows/dpkg-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
done

releases+=("debian:stretch")
releases+=("ubuntu:xenial")

matrix=$(printf "%s\n" "${releases[@]}" | jq -nRc '[inputs]')

Expand Down Expand Up @@ -68,8 +69,7 @@ jobs:
target: "debian:buster"
arch: "amd64"
- target: "debian:bullseye"
- target: "ubuntu:groovy"
- target: "ubuntu:hirsute"
- target: "ubuntu:jammy"
env:
BUILD_TARGET: ${{ matrix.target }}
BUILD_ARCH: ${{ matrix.arch }}
Expand All @@ -85,17 +85,33 @@ jobs:
- name: Backport gpg keyrings
run: |
cd /tmp
curl -fLO https://deb.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2020.12.24_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1-5_all.deb
dpkg -i debian-keyring_2020.12.24_all.deb
dpkg -i ubuntu-keyring_2018.09.18.1-5_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2022.08.11_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2020.06.17.1-1_all.deb
dpkg -i debian-keyring_2022.08.11_all.deb
dpkg -i ubuntu-keyring_2020.06.17.1-1_all.deb
- name: Backport cmake on stretch
run: |
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
echo "deb http://deb.debian.org/debian stretch-backports-sloppy main" >> /etc/apt/sources.list
apt-get update
apt-get install -y -t stretch-backports-sloppy libarchive13
apt-get install -y -t stretch-backports cmake
if: matrix.target == 'debian:stretch'
- name: Backport cmake on xenial
run: |
apt-get install -y apt-transport-https
curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ xenial main' > /etc/apt/sources.list.d/kitware.list
apt-get update
apt-get install -y cmake
if: matrix.target == 'ubuntu:xenial'
- name: Backport build tools on xenial and stretch
run: |
apt-get install -y gnupg
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B65E182
echo "deb http://ppa.launchpad.net/spvkgn/build-dep/ubuntu xenial main" > /etc/apt/sources.list.d/spvkgn-ubuntu-build-dep-xenial.list
apt-get update
apt-get install -y debhelper dpkg-dev meson ninja-build
apt-get install -y debhelper dpkg dpkg-dev meson ninja-build
if: matrix.target == 'debian:stretch' || matrix.target == 'ubuntu:xenial'
- name: Backport build tools on bionic
run: |
Expand Down Expand Up @@ -146,8 +162,7 @@ jobs:
exclude:
- target: "debian:bullseye"
- target: "ubuntu:focal"
- target: "ubuntu:groovy"
- target: "ubuntu:hirsute"
- target: "ubuntu:jammy"
env:
BUILD_TARGET: ${{ matrix.target }}
BUILD_ARCH: ${{ matrix.arch }}
Expand All @@ -163,17 +178,33 @@ jobs:
- name: Backport gpg keyrings
run: |
cd /tmp
curl -fLO https://deb.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2020.12.24_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1-5_all.deb
dpkg -i debian-keyring_2020.12.24_all.deb
dpkg -i ubuntu-keyring_2018.09.18.1-5_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2022.08.11_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2020.06.17.1-1_all.deb
dpkg -i debian-keyring_2022.08.11_all.deb
dpkg -i ubuntu-keyring_2020.06.17.1-1_all.deb
- name: Backport cmake on stretch
run: |
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
echo "deb http://deb.debian.org/debian stretch-backports-sloppy main" >> /etc/apt/sources.list
apt-get update
apt-get install -y -t stretch-backports-sloppy libarchive13
apt-get install -y -t stretch-backports cmake
if: matrix.target == 'debian:stretch'
- name: Backport cmake on xenial
run: |
apt-get install -y apt-transport-https
curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ xenial main' > /etc/apt/sources.list.d/kitware.list
apt-get update
apt-get install -y cmake
if: matrix.target == 'ubuntu:xenial'
- name: Backport build tools on xenial and stretch
run: |
apt-get install -y gnupg
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B65E182
echo "deb http://ppa.launchpad.net/spvkgn/build-dep/ubuntu xenial main" > /etc/apt/sources.list.d/spvkgn-ubuntu-build-dep-xenial.list
apt-get update
apt-get install -y debhelper dpkg-dev meson ninja-build
apt-get install -y debhelper dpkg dpkg-dev meson ninja-build
if: matrix.target == 'debian:stretch' || matrix.target == 'ubuntu:xenial'
- name: Backport build tools on bionic
run: |
Expand Down Expand Up @@ -226,7 +257,7 @@ jobs:
- amd64
exclude:
- target: "debian:bullseye"
- target: "ubuntu:hirsute"
- target: "ubuntu:jammy"
env:
BUILD_TARGET: ${{ matrix.target }}
BUILD_ARCH: ${{ matrix.arch }}
Expand All @@ -242,17 +273,33 @@ jobs:
- name: Backport gpg keyrings
run: |
cd /tmp
curl -fLO https://deb.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2020.12.24_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1-5_all.deb
dpkg -i debian-keyring_2020.12.24_all.deb
dpkg -i ubuntu-keyring_2018.09.18.1-5_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/d/debian-keyring/debian-keyring_2022.08.11_all.deb
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2020.06.17.1-1_all.deb
dpkg -i debian-keyring_2022.08.11_all.deb
dpkg -i ubuntu-keyring_2020.06.17.1-1_all.deb
- name: Backport cmake on stretch
run: |
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
echo "deb http://deb.debian.org/debian stretch-backports-sloppy main" >> /etc/apt/sources.list
apt-get update
apt-get install -y -t stretch-backports-sloppy libarchive13
apt-get install -y -t stretch-backports cmake
if: matrix.target == 'debian:stretch'
- name: Backport cmake on xenial
run: |
apt-get install -y apt-transport-https
curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ xenial main' > /etc/apt/sources.list.d/kitware.list
apt-get update
apt-get install -y cmake
if: matrix.target == 'ubuntu:xenial'
- name: Backport build tools on xenial and stretch
run: |
apt-get install -y gnupg
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B65E182
echo "deb http://ppa.launchpad.net/spvkgn/build-dep/ubuntu xenial main" > /etc/apt/sources.list.d/spvkgn-ubuntu-build-dep-xenial.list
apt-get update
apt-get install -y debhelper dpkg-dev meson ninja-build
apt-get install -y debhelper dpkg dpkg-dev meson ninja-build
if: matrix.target == 'debian:stretch' || matrix.target == 'ubuntu:xenial'
- name: Backport build tools on bionic
run: |
Expand Down Expand Up @@ -305,7 +352,7 @@ jobs:
arch:
- amd64
exclude:
- target: "debian:bullseye"
- target: "ubuntu:jammy"
env:
BUILD_TARGET: ${{ matrix.target }}
BUILD_ARCH: ${{ matrix.arch }}
Expand All @@ -325,13 +372,29 @@ jobs:
curl -fLO https://deb.debian.org/debian/pool/main/u/ubuntu-keyring/ubuntu-keyring_2018.09.18.1-5_all.deb
dpkg -i debian-keyring_2020.12.24_all.deb
dpkg -i ubuntu-keyring_2018.09.18.1-5_all.deb
- name: Backport cmake on stretch
run: |
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
echo "deb http://deb.debian.org/debian stretch-backports-sloppy main" >> /etc/apt/sources.list
apt-get update
apt-get install -y -t stretch-backports-sloppy libarchive13
apt-get install -y -t stretch-backports cmake
if: matrix.target == 'debian:stretch'
- name: Backport cmake on xenial
run: |
apt-get install -y apt-transport-https
curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ xenial main' > /etc/apt/sources.list.d/kitware.list
apt-get update
apt-get install -y cmake
if: matrix.target == 'ubuntu:xenial'
- name: Backport build tools on xenial and stretch
run: |
apt-get install -y gnupg
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B65E182
echo "deb http://ppa.launchpad.net/spvkgn/build-dep/ubuntu xenial main" > /etc/apt/sources.list.d/spvkgn-ubuntu-build-dep-xenial.list
apt-get update
apt-get install -y debhelper dpkg-dev meson ninja-build
apt-get install -y debhelper dpkg dpkg-dev meson ninja-build
if: matrix.target == 'debian:stretch' || matrix.target == 'ubuntu:xenial'
- name: Backport build tools on bionic
run: |
Expand Down
Loading