summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-04-04 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-04-04 17:32:08 +0000
commit086745547df419ae5ab96258ab82053d19fb803c (patch)
treeebd886abd02d451ee9d27fb1de377b89e9c0d084
parent9c0965b188b972867a62a3b947aa446a3ee3badd (diff)
downloadlinux-pam-git-ldv/ci-openssl.tar.gz
ci: add --enable-openssl jobs to the ci matrixldv/ci-openssl
Link: https://github.com/linux-pam/linux-pam/pull/550#issuecomment-1490362439
-rw-r--r--.github/workflows/ci.yml30
-rwxr-xr-xci/run-build-and-tests.sh6
2 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6125178f..37c4e81b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -42,6 +42,21 @@ jobs:
- name: build check
run: ci/run-build-and-tests.sh
+ gcc12-x86_64-openssl:
+ runs-on: ubuntu-latest
+ env:
+ CC: gcc-12
+ TARGET: x86_64
+ USE_OPENSSL: yes
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - name: install dependencies
+ run: ci/install-dependencies.sh
+ - name: build check
+ run: ci/run-build-and-tests.sh
+
gcc11-x86_64:
runs-on: ubuntu-latest
env:
@@ -99,6 +114,21 @@ jobs:
- name: build check
run: ci/run-build-and-tests.sh
+ clang14-x86_64-openssl:
+ runs-on: ubuntu-latest
+ env:
+ CC: clang-14
+ TARGET: x86_64
+ USE_OPENSSL: yes
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - name: install dependencies
+ run: ci/install-dependencies.sh
+ - name: build check
+ run: ci/run-build-and-tests.sh
+
clang14-x86_64:
runs-on: ubuntu-latest
env:
diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh
index e5a76562..f5f61d38 100755
--- a/ci/run-build-and-tests.sh
+++ b/ci/run-build-and-tests.sh
@@ -38,6 +38,12 @@ case "${VENDORDIR-}" in
;;
esac
+case "${USE_OPENSSL-}" in
+ yes)
+ DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --enable-openssl"
+ ;;
+esac
+
echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION'
uname -a |head -1
libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)"