]> git.feebdaed.xyz Git - 0xmirror/openssl.git/commitdiff
Add ci test to run against minimal gcc version we support master
authorNeil Horman <nhorman@openssl.org>
Sun, 21 Dec 2025 19:40:45 +0000 (14:40 -0500)
committerNeil Horman <nhorman@openssl.org>
Fri, 26 Dec 2025 22:32:46 +0000 (17:32 -0500)
We currently support gcc 9 as a minimum compiler version.  We should run
at least one ci job against that minimal version to make sure we don't
break anything.

Most notably this will help us catch errors if we attempt to use
intrinsics that aren't supported by that compiler.

Reviewed-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29482)

.github/workflows/ci.yml

index a6f460da1d7838fa3bb25d59a068f4fc2dc6ca96..f8c778a181541de70754853fe6d6364147335bba 100644 (file)
@@ -162,6 +162,31 @@ jobs:
         name: "ci@linux-arm64"
         path: artifacts.tar.gz
 
+  gcc-min-version:
+    runs-on: ubuntu-latest
+    container:
+      image: docker.io/gcc:9
+    timeout-minutes: 90
+    strategy:
+      fail-fast: false
+    steps:
+    - uses: actions/checkout@v5
+      with:
+        persist-credentials: false
+    - name: config
+      run: ./config --strict-warnings --banner=Configured enable-fips && perl configdata.pm --dump
+    - name: make
+      run: make -s -j4
+    - name: print gcc version
+      run: |
+        gcc --version
+    - name: get cpu info
+      run: |
+        cat /proc/cpuinfo
+        ./util/opensslwrap.sh version -c
+    - name: make test
+      run: .github/workflows/make-test
+
   linux-x86:
     runs-on: ubuntu-latest
     steps: