Bump uraimo/run-on-arch-action from 2.5.1 to 2.6.0 #27
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: Test building debian packages | |
on: pull_request | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
jobs: | |
debian-package-amd64: | |
name: "${{ matrix.distro }} ${{ matrix.release }} ${{ matrix.arch }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- distro: "debian" | |
release: "buster" | |
arch: "amd64" | |
- distro: "debian" | |
release: "bullseye" | |
arch: "amd64" | |
- distro: "debian" | |
release: "bookworm" | |
arch: "amd64" | |
- distro: "ubuntu" | |
release: "focal" | |
arch: "amd64" | |
- distro: "ubuntu" | |
release: "jammy" | |
arch: "amd64" | |
- distro: "ubuntu" | |
release: "lunar" | |
arch: "amd64" | |
container: | |
image: ${{ matrix.distro }}:${{ matrix.release }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install devscripts dpkg-dev debhelper equivs curl gnupg | |
echo "deb https://packagecloud.io/faucetsdn/faucet/${{ matrix.distro }}/ ${{ matrix.release }} main" | tee /etc/apt/sources.list.d/faucet.list | |
curl -1sLf https://packagecloud.io/faucetsdn/faucet/gpgkey -o /etc/apt/trusted.gpg.d/faucet.asc | |
echo "deb https://packagecloud.io/faucetsdn/faucet-test/${{ matrix.distro }}/ ${{ matrix.release }} main" | tee /etc/apt/sources.list.d/faucet-test.list | |
curl -1sLf https://packagecloud.io/faucetsdn/faucet-test/gpgkey -o /etc/apt/trusted.gpg.d/faucet-test.asc | |
apt-get update | |
- name: Bump version | |
run: | | |
export DEBEMAIL='[email protected]' | |
export DEBFULLNAME='Faucet Maintainers' | |
debchange -b "Test release" | |
- name: Build package | |
run: | | |
mk-build-deps -i -r -t 'apt-get -f -y --force-yes' | |
dpkg-buildpackage -b -us -uc -rfakeroot | |
debian-package-other: | |
name: "${{ matrix.distro }} ${{ matrix.release }} ${{ matrix.arch }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- distro: "debian" | |
release: "buster" | |
image: "buster" | |
arch: "armv7" | |
- distro: "debian" | |
release: "buster" | |
image: "buster" | |
arch: "aarch64" | |
- distro: "debian" | |
release: "bullseye" | |
image: "bullseye" | |
arch: "armv7" | |
- distro: "debian" | |
release: "bullseye" | |
image: "bullseye" | |
arch: "aarch64" | |
- distro: "ubuntu" | |
release: "focal" | |
image: "ubuntu20.04" | |
arch: "armv7" | |
- distro: "ubuntu" | |
release: "focal" | |
image: "ubuntu20.04" | |
arch: "aarch64" | |
- distro: "ubuntu" | |
release: "jammy" | |
image: "ubuntu22.04" | |
arch: "armv7" | |
- distro: "ubuntu" | |
release: "jammy" | |
image: "ubuntu22.04" | |
arch: "aarch64" | |
- distro: "raspbian" | |
release: "buster" | |
image: "buster" | |
arch: "armv7" | |
- distro: "raspbian" | |
release: "buster" | |
image: "buster" | |
arch: "aarch64" | |
- distro: "raspbian" | |
release: "bullseye" | |
image: "bullseye" | |
arch: "armv7" | |
- distro: "raspbian" | |
release: "bullseye" | |
image: "bullseye" | |
arch: "aarch64" | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- uses: uraimo/[email protected] | |
name: Build artifact | |
id: build | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ${{ matrix.image }} | |
shell: /bin/bash | |
install: | | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install devscripts dpkg-dev debhelper equivs curl gnupg | |
/usr/bin/c_rehash | |
echo "deb https://packagecloud.io/faucetsdn/faucet/${{ matrix.distro }}/ ${{ matrix.release }} main" | tee /etc/apt/sources.list.d/faucet.list | |
curl -1sLf https://packagecloud.io/faucetsdn/faucet/gpgkey -o /etc/apt/trusted.gpg.d/faucet.asc | |
echo "deb https://packagecloud.io/faucetsdn/faucet-test/${{ matrix.distro }}/ ${{ matrix.release }} main" | tee /etc/apt/sources.list.d/faucet-test.list | |
curl -1sLf https://packagecloud.io/faucetsdn/faucet-test/gpgkey -o /etc/apt/trusted.gpg.d/faucet-test.asc | |
apt-get update | |
run: | | |
export DEBEMAIL='[email protected]' | |
export DEBFULLNAME='Faucet Maintainers' | |
mkdir -p /build | |
cp -r ${GITHUB_WORKSPACE} /build/package | |
cd /build/package | |
debchange -b "Test release" | |
mk-build-deps -i -r -t 'apt-get -f -y --force-yes' | |
dpkg-buildpackage -b -us -uc -rfakeroot |