aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-11-25 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-11-25 08:00:00 +0000
commitd918ba495c32b2f411e98558b936ec34f62758e2 (patch)
treed4104107bfcacae6d561570a86614fe4df3a0007
parent940747f88c16e029b69a74e80a2e94f65cb3e628 (diff)
downloadpam-d918ba495c32b2f411e98558b936ec34f62758e2.tar.gz
pam-d918ba495c32b2f411e98558b936ec34f62758e2.tar.bz2
pam-d918ba495c32b2f411e98558b936ec34f62758e2.zip
ci: add logind enabled jobs
-rw-r--r--.github/workflows/ci.yml30
-rwxr-xr-xci/build.sh6
-rwxr-xr-xci/install-dependencies.sh6
3 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c28e98fe..23fbac0a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,6 +28,21 @@ jobs:
- name: build check
run: ci/build.sh
+ gcc14-x86_64-logind:
+ runs-on: ubuntu-24.04
+ env:
+ CC: gcc-14
+ TARGET: x86_64
+ USE_LOGIND: yes
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: install dependencies
+ run: ci/install-dependencies.sh
+ - name: build check
+ run: ci/build.sh
+
gcc14-x86_64-openssl:
runs-on: ubuntu-24.04
env:
@@ -490,6 +505,21 @@ jobs:
- name: build check
run: ci/build.sh
+ clang18-x86_64-logind:
+ runs-on: ubuntu-24.04
+ env:
+ CC: clang-18
+ TARGET: x86_64
+ USE_LOGIND: yes
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: install dependencies
+ run: ci/install-dependencies.sh
+ - name: build check
+ run: ci/build.sh
+
clang18-x86_64-openssl:
runs-on: ubuntu-24.04
env:
diff --git a/ci/build.sh b/ci/build.sh
index c50bb7f2..e6b1123a 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -13,6 +13,12 @@ case "${VENDORDIR-}" in
;;
esac
+case "${USE_LOGIND-}" in
+ yes)
+ opts="$opts -Dlogind=enabled"
+ ;;
+esac
+
case "${USE_OPENSSL-}" in
yes)
opts="$opts -Dopenssl=enabled"
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index d38aba98..02ee4751 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -63,6 +63,12 @@ case "$TARGET" in
;;
esac
+case "${USE_LOGIND-}" in
+ yes)
+ packages="$packages libsystemd-dev"
+ ;;
+esac
+
apt_get_install $packages
case "${CHECK-}" in