From: Álvaro Fernández Rojas Date: Fri, 14 Nov 2025 13:25:05 +0000 (+0100) Subject: github: ci: add cmake build and source directories X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b3d1e2e48cf46e6b8ccdd0703bc4193a885269c7;p=project%2Fomcproxy.git github: ci: add cmake build and source directories 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 --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0cd5cc..30e322c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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