]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: expand the test framework to cover openssl
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Dec 2021 11:50:01 +0000 (12:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Dec 2021 10:31:20 +0000 (11:31 +0100)
.github/workflows/unit_tests.sh
.github/workflows/unit_tests.yml

index 7e7e3016e8e0d9b45aa1dbfe340b89d4c7c67a2f..ec7e92a49a7c77b4fee5f043e5a6095ecae6f516 100755 (executable)
@@ -29,6 +29,8 @@ function info() {
 
 set -ex
 
+MESON_ARGS=(-Dcryptolib=${CRYPTOLIB:-auto})
+
 for phase in "${PHASES[@]}"; do
     case $phase in
         SETUP)
index 1458732d2b8e9f9fed554b9cb05fa9d0380215de..537074c231fdba635566b4d5629e14c3db9f229e 100644 (file)
@@ -22,10 +22,18 @@ jobs:
       fail-fast: false
       matrix:
         run_phase: [GCC, GCC_ASAN_UBSAN, CLANG, CLANG_ASAN_UBSAN]
+        cryptolib: [auto]
+        include:
+          - run_phase: GCC
+            cryptolib: openssl
+          - run_phase: CLANG
+            cryptolib: gcrypt
     steps:
       - name: Repository checkout
         uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
       - name: Install build dependencies
         run: sudo -E .github/workflows/unit_tests.sh SETUP
-      - name: Build & test (${{ matrix.run_phase }})
+      - name: Build & test (${{ matrix.run_phase }}-${{ matrix.cryptolib }})
         run: sudo -E .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }}
+        env:
+          CRYPTOLIB: ${{ matrix.cryptolib }}