CI: run tests with libgcrypt.
[tinc] / .github / workflows / test.yml
index 05670b7..39c7dc7 100644 (file)
@@ -10,7 +10,7 @@ on:
 jobs:
   cross:
     runs-on: ubuntu-latest
-    timeout-minutes: 15
+    timeout-minutes: 30
     strategy:
       fail-fast: false
       matrix:
@@ -19,7 +19,7 @@ jobs:
           - mips
 
     container:
-      image: debian:stable
+      image: debian:buster
       options: --privileged
 
     steps:
@@ -40,6 +40,9 @@ jobs:
       - name: Run tests without legacy protocol
         run: sudo -u build CI=1 HOST=${{ matrix.arch }} sh .ci/test/run.sh nolegacy
 
+      - name: Run tests with libgcrypt
+        run: sudo -u build CI=1 HOST=${{ matrix.arch }} sh .ci/test/run.sh gcrypt
+
       - name: Upload test results
         uses: actions/upload-artifact@v2
         with:
@@ -110,7 +113,7 @@ jobs:
 
   sanitizer:
     runs-on: ubuntu-latest
-    timeout-minutes: 10
+    timeout-minutes: 20
     strategy:
       fail-fast: false
       matrix:
@@ -159,7 +162,8 @@ jobs:
           - centos:7 # aka RHEL 7
           - almalinux:8 # aka RHEL 8
           - fedora
-          - debian:stable
+          - debian:buster
+          - debian:bullseye
           - debian:testing
           - ubuntu # current LTS
           - ubuntu:rolling # latest
@@ -187,6 +191,9 @@ jobs:
       - name: Run tests without legacy protocol
         run: sudo -u build CI=1 sh .ci/test/run.sh nolegacy
 
+      - name: Run tests with libgcrypt
+        run: sudo -u build CI=1 sh .ci/test/run.sh gcrypt
+
       - name: Upload test results
         uses: actions/upload-artifact@v2
         with:
@@ -243,7 +250,7 @@ jobs:
 
   macos:
     runs-on: macos-latest
-    timeout-minutes: 15
+    timeout-minutes: 20
 
     steps:
       - name: Checkout code
@@ -263,6 +270,9 @@ jobs:
       - name: Run tests without legacy protocol
         run: sh .ci/test/run.sh nolegacy
 
+      - name: Run tests with libgcrypt
+        run: sh .ci/test/run.sh gcrypt
+
       - name: Upload test results
         uses: actions/upload-artifact@v2
         with:
@@ -272,7 +282,7 @@ jobs:
 
   windows:
     runs-on: windows-latest
-    timeout-minutes: 20
+    timeout-minutes: 30
 
     steps:
       - name: Install msys2
@@ -284,6 +294,7 @@ jobs:
             base-devel
             mingw-w64-x86_64-gcc
             mingw-w64-x86_64-openssl
+            mingw-w64-x86_64-libgcrypt
             mingw-w64-x86_64-zlib
             mingw-w64-x86_64-lzo2
             mingw-w64-x86_64-lz4
@@ -316,6 +327,10 @@ jobs:
         shell: msys2 {0}
         run: sh .ci/test/run.sh nolegacy
 
+      - name: Run tests with libgcrypt
+        shell: msys2 {0}
+        run: sh .ci/test/run.sh gcrypt
+
       - name: Upload test results
         uses: actions/upload-artifact@v2
         with: