]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Re-implement ANSI C building with a Github workflow
authorRichard Levitte <levitte@openssl.org>
Mon, 29 Mar 2021 14:04:21 +0000 (16:04 +0200)
committerPauli <pauli@openssl.org>
Wed, 31 Mar 2021 03:28:46 +0000 (13:28 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14729)

.github/workflows/ci.yml

index ad24aaa5b86b4075532198eccd29ebd4feda909c..85fbe952dc6cf91693065bafd00f32784a9c5154 100644 (file)
@@ -36,6 +36,18 @@ jobs:
     - name: make doc-nits
       run: make doc-nits
 
+  # This checks that we use ANSI C language syntax and semantics.
+  # We are not as strict with libraries, but rather adapt to what's
+  # expected to be available in a certain version of each platform.
+  check-ansi:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: config
+      run: CPPFLAGS=-ansi ./config no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
+    - name: make
+      run: make -s -j4
+
   basic_gcc:
     runs-on: ubuntu-latest
     steps: