Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Merge pull request #463 from cole-miller/trace-term #149

Merge pull request #463 from cole-miller/trace-term

Merge pull request #463 from cole-miller/trace-term #149

Workflow file for this run

name: Build PPA source packages
on:
- push
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- focal
- jammy
- kinetic
runs-on: ubuntu-20.04
steps:
- name: Clone the repositories
run: |
git clone https://github.com/canonical/raft
git clone https://github.com/canonical/dqlite-ppa -b raft --depth 1
- name: Setup dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq debhelper devscripts
- name: Build source package
env:
DEBFULLNAME: "Github Actions"
DEBEMAIL: "[email protected]"
TARGET: ${{ matrix.target }}
run: |
cp -R dqlite-ppa/debian raft/
cd raft/
VERSION="$(git describe --tags | sed -e "s/^v//" -e "s/-/+git/")"
dch --create \
--distribution ${TARGET} \
--package raft \
--newversion ${VERSION}~${TARGET}1 \
"Automatic build from Github"
debuild -S -sa -us -uc -d
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: debian-${{ matrix.target }}
if-no-files-found: error
path: |
*.buildinfo
*.changes
*.dsc
*.tar.*