]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Include supported branches in coveralls
authorPauli <pauli@openssl.org>
Mon, 27 Feb 2023 00:05:48 +0000 (11:05 +1100)
committerPauli <pauli@openssl.org>
Thu, 2 Mar 2023 22:29:33 +0000 (09:29 +1100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/20383)

.github/workflows/coveralls.yml

index c380514951a28f5c9e4cc5c4bc5785c3582ec883..10308c2a2b0f929bd0c80dd84634f585503bc26c 100644 (file)
@@ -7,7 +7,7 @@
 
 name: Coverage
 
-#Run once a day
+# Run once a day
 on:
   schedule:
     - cron:  '49 0 * * *'
@@ -18,26 +18,47 @@ permissions:
 jobs:
   coverage:
     permissions:
-      checks: write  # for coverallsapp/github-action to create new checks
-      contents: read  # for actions/checkout to fetch code
+      checks: write     # for coverallsapp/github-action to create new checks
+      contents: read    # for actions/checkout to fetch code
+    strategy:
+      fail-fast: false
+      matrix:
+        branches: [
+          {
+            branch: OpenSSL_1_1_1-stable
+          }, {
+            branch: openssl-3.1,
+            extra_config: enable-fips
+          }, {
+            branch: openssl-3.0,
+            extra_config: enable-fips
+          }, {
+            branch: master,
+            extra_config: no-afalgeng enable-fips enable-tfo enable-quic
+          }
+        ]
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v3
       with:
         submodules: recursive
+        ref: ${{ matrix.branches.branch }}
+    - name: cache commit id
+      run: |
+        echo "githubid=`/usr/bin/git log -1 --format='%H'`" >>$GITHUB_ENV
     - name: package installs
       run: |
         sudo apt-get update
         sudo apt-get -yq install lcov
         sudo apt-get -yq install bison gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcsh python3-virtualenv virtualenv python3-kdcproxy
-    - name: install cpanm and Test2::V0 for gost_engine testing
+    - name: install Test2::V0 for gost_engine testing
       uses: perl-actions/install-with-cpanm@v1
       with:
         install: Test2::V0
     - name: setup hostname workaround
       run: sudo hostname localhost
     - name: config
-      run: CC=gcc ./config --banner=Configured --debug --coverage no-asm no-afalgeng enable-fips enable-rc5 enable-md2 enable-ssl3 enable-nextprotoneg enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-shared enable-buildtest-c++ enable-external-tests enable-tfo enable-quic -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
+      run: CC=gcc ./config --debug --coverage ${{ matrix.branches.extra_config }} no-asm enable-rc5 enable-md2 enable-ssl3 enable-nextprotoneg enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-shared enable-buildtest-c++ enable-external-tests -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     - name: config dump
       run: ./configdata.pm --dump
     - name: make
@@ -50,4 +71,6 @@ jobs:
       uses: coverallsapp/github-action@v1.2.4
       with:
         github-token: ${{ secrets.github_token }}
+        git-branch: ${{ matrix.branches.branch }}
+        git-commit: ${{ env.githubid }}
         path-to-lcov: ./lcov.info