GitHub workflow to build and test on push or pull request #10
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
test-debian-like: | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- ubuntu:latest | |
- ubuntu:20.04 | |
- ubuntu:22.04 | |
- debian:testing | |
- debian:stable | |
- debian:oldstable | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- name: install dependencies | |
run: | | |
apt-get update && | |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
automake \ | |
build-essential \ | |
ca-certificates \ | |
git \ | |
pkg-config \ | |
python3 \ | |
scdoc \ | |
systemd \ | |
; | |
- uses: actions/checkout@v4 | |
# https://github.com/actions/checkout/issues/1169 | |
- name: fix git permissions | |
run: git config --system --add safe.directory $(pwd) | |
- name: autogen | |
run: ./autogen | |
- name: configure | |
run: ./configure | |
- name: check | |
run: make VERBOSE=1 AM_COLOR_TESTS=always check | |
- name: distcheck | |
run: make VERBOSE=1 AM_COLOR_TESTS=always distcheck | |
- name: distribution tarball is complete | |
run: ./.github/workflows/scripts/dist-tarball-check | |
- if: ${{ matrix.image == 'debian:testing' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: distribution-tarball | |
path: keyd-*.tar.gz |