github: ci: add cmake build and source directories
authorÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 13:25:05 +0000 (14:25 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 13:25:05 +0000 (14:25 +0100)
Add cmake build and source directories to suppress the following warning:
CMake Warning:
  No source or binary directory provided. Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
.github/workflows/ci.yml

index b0cd5cc2989570c3d9ccedeff44ac4fcd1124fd0..30e322c61a6df0ea3c5ad15922435e38ea8538ec 100644 (file)
@@ -63,7 +63,8 @@ jobs:
             -DBUILD_SHARED_LIBS=OFF \
             -DDISABLE_EXTRA_LIBS=ON \
             -DBUILD_TESTING=OFF \
-            --install-prefix ${GITHUB_WORKSPACE}/build
+            --install-prefix ${GITHUB_WORKSPACE}/build \
+            -B . -S .
           make
           make install
 
@@ -73,8 +74,10 @@ jobs:
           cmake \
             -DCMAKE_C_COMPILER=${{ matrix.gcc }} \
             -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/build \
-            -DBUILD_LUA=OFF -DBUILD_EXAMPLES=OFF \
-            --install-prefix ${GITHUB_WORKSPACE}/build
+            -DBUILD_LUA=OFF \
+            -DBUILD_EXAMPLES=OFF \
+            --install-prefix ${GITHUB_WORKSPACE}/build \
+            -B . -S .
           make
           make install
 
@@ -86,7 +89,7 @@ jobs:
           cmake \
             -DCMAKE_C_COMPILER=${{ matrix.gcc }} \
             -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/build \
-            -B $BUILD_DIR
+            -B $BUILD_DIR -S .
           make -C $BUILD_DIR
           echo "size_${{ matrix.arch }}=$( find $BUILD_DIR -type f -name omcproxy -printf '%s' )" >> $GITHUB_OUTPUT