Skip to content

Commit 0a6b58b

Browse files
author
Paul Dreik
committed
add debian to CI
1 parent 5ee23be commit 0a6b58b

File tree

3 files changed

+126
-0
lines changed

3 files changed

+126
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: debian 12 bookworm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- devel
8+
pull_request:
9+
10+
11+
jobs:
12+
container-test-job:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: debian:bookworm-slim
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v4
19+
- name: install packages
20+
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
21+
- name: bootstrap
22+
run: ./bootstrap.sh
23+
- name: configure
24+
run: ./configure --enable-warnings CXXFLAGS=-std=c++11
25+
- name: make
26+
run: make
27+
- name: make check
28+
run: make check
29+
- name: make distcheck
30+
run: make distcheck CXXFLAGS=-std=c++11
31+
- name: build with hardened build flags
32+
run: |
33+
make clean
34+
eval $(DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
35+
./configure
36+
make
37+
make check
38+
- name: store the logs as an artifact
39+
if: ${{ always() }}
40+
uses: actions/upload-artifact@v4
41+
with:
42+
path: '**/*.log'
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: debian 11 bullseye
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- devel
8+
pull_request:
9+
10+
11+
jobs:
12+
container-test-job:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: debian:bullseye-slim
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v4
19+
- name: install packages
20+
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
21+
- name: bootstrap
22+
run: ./bootstrap.sh
23+
- name: configure
24+
run: ./configure --enable-warnings CXXFLAGS=-std=c++11
25+
- name: make
26+
run: make
27+
- name: make check
28+
run: make check
29+
- name: make distcheck
30+
run: make distcheck CXXFLAGS=-std=c++11
31+
- name: build with hardened build flags
32+
run: |
33+
make clean
34+
eval $(DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
35+
./configure
36+
make
37+
make check
38+
- name: store the logs as an artifact
39+
if: ${{ always() }}
40+
uses: actions/upload-artifact@v4
41+
with:
42+
path: '**/*.log'
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: debian 13 trixie
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- devel
8+
pull_request:
9+
10+
11+
jobs:
12+
container-test-job:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: debian:trixie-slim
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v4
19+
- name: install packages
20+
run: apt-get update && apt-get install autoconf build-essential nettle-dev libcap2-bin --yes
21+
- name: bootstrap
22+
run: ./bootstrap.sh
23+
- name: configure
24+
run: ./configure --enable-warnings CXXFLAGS=-std=c++11
25+
- name: make
26+
run: make
27+
- name: make check
28+
run: make check
29+
- name: make distcheck
30+
run: make distcheck CXXFLAGS=-std=c++11
31+
- name: build with hardened build flags
32+
run: |
33+
make clean
34+
eval $(DEB_BUILD_MAINT_OPTIONS="hardening=+all qa=+all,-canary reproducible=+all" dpkg-buildflags --export=sh)
35+
./configure
36+
make
37+
make check
38+
- name: store the logs as an artifact
39+
if: ${{ always() }}
40+
uses: actions/upload-artifact@v4
41+
with:
42+
path: '**/*.log'

0 commit comments

Comments
 (0)