]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Add new GitHub action for running `make distcheck`.
authorFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 07:46:59 +0000 (08:46 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 24 Nov 2023 07:49:34 +0000 (08:49 +0100)
.github/workflows/distcheck.yml [new file with mode: 0644]

diff --git a/.github/workflows/distcheck.yml b/.github/workflows/distcheck.yml
new file mode 100644 (file)
index 0000000..fcfe42b
--- /dev/null
@@ -0,0 +1,35 @@
+name: make distcheck
+
+on:
+  push:
+    branches: [ main ]
+  pull_request:
+    branches: [ main ]
+
+permissions:
+  contents: read
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    container: collectd/ci:bookworm_amd64
+    env:
+      MAKEFLAGS: "-j$(nproc) -sk"
+      # this env var picked up by valgrind during make check phase
+      VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
+    steps:
+    - uses: actions/checkout@v4
+    - name: Install bzip2
+      run: apt install -y bzip2
+    - name: Print available packages
+      run: pkg-config --list-all | sort
+    - name: Generate configure script
+      run: ./build.sh
+    - name: Run configure script
+      run: ./configure
+    - name: Run make distcheck
+      run: make $MAKEFLAG distcheck