Skip to content

Commit

Permalink
add debian to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dreik committed Jan 12, 2025
1 parent 5ee23be commit 0a6b58b
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/debian-bookworm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: debian 12 bookworm

on:
push:
branches:
- main
- devel
pull_request:


jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: debian:bookworm-slim
steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++11
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++11
- name: build with hardened build flags
run: |
make clean
eval $(DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
42 changes: 42 additions & 0 deletions .github/workflows/debian-bullseye.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: debian 11 bullseye

on:
push:
branches:
- main
- devel
pull_request:


jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: debian:bullseye-slim
steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++11
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++11
- name: build with hardened build flags
run: |
make clean
eval $(DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'
42 changes: 42 additions & 0 deletions .github/workflows/debian-trixie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: debian 13 trixie

on:
push:
branches:
- main
- devel
pull_request:


jobs:
container-test-job:
runs-on: ubuntu-latest
container:
image: debian:trixie-slim
steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure --enable-warnings CXXFLAGS=-std=c++11
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck CXXFLAGS=-std=c++11
- name: build with hardened build flags
run: |
make clean
eval $(DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
./configure
make
make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

0 comments on commit 0a6b58b

Please sign in to comment.