]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI: switch the awslc builds to build out-of-tree
authorDan Fandrich <dan@coneharvesters.com>
Thu, 27 Apr 2023 05:10:40 +0000 (22:10 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 27 Apr 2023 07:15:41 +0000 (00:15 -0700)
This is a common configuration that should be tested to avoid
regressions. The awsls cmake build was already out-of-tree so the
automake build now joins it.

Ref: #11006

.github/workflows/awslc.yml

index 6e012ea45ead984f739fca6c4179b371fe8efa11..260f0c6d6b89f64840106717a5dd26ea8a5956b3 100644 (file)
@@ -70,19 +70,23 @@ jobs:
     - run: autoreconf -fi
       name: 'autoreconf'
 
-    - run: ./configure --enable-warnings --enable-werror --with-openssl=$HOME/awslc
-      name: 'configure'
+    - run: |
+        mkdir build
+        cd build
+        ../configure --enable-warnings --enable-werror --with-openssl=$HOME/awslc
+        cd ..
+      name: 'configure out-of-tree'
 
-    - run: make -j 2 V=1
+    - run: make -C build -j 2 V=1
       name: 'make'
 
-    - run: make -j 2 V=1 examples
+    - run: make -C build -j 2 V=1 examples
       name: 'make examples'
 
-    - run: make -j 2 V=1 -C tests
+    - run: make -C build -j 2 V=1 -C tests
       name: 'make tests'
 
-    - run: make V=1 test-ci
+    - run: make -C build V=1 test-ci
       name: 'run tests'
 
   cmake:
@@ -113,7 +117,7 @@ jobs:
 
     # CMAKE_COMPILE_WARNING_AS_ERROR is available in cmake 3.24 or later
     - run: cmake -Bbuild -DOPENSSL_ROOT_DIR=$HOME/awslc -DBUILD_SHARED_LIBS=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON .
-      name: 'cmake generate'
+      name: 'cmake generate out-of-tree'
 
     - run: cmake --build build --parallel
       name: 'cmake build'