diff --git a/.github/workflows/mcg-ci.yml b/.github/workflows/mcg-ci.yml index ed3eb898..afd8a3a9 100644 --- a/.github/workflows/mcg-ci.yml +++ b/.github/workflows/mcg-ci.yml @@ -64,7 +64,18 @@ jobs: stat $MCG_CFG [[ "$($MCG_CFG --prefix)" == "$(cd install; pwd)" ]] || exit 1 [[ "$($MCG_CFG --revision)" == "$(git rev-parse HEAD)" ]] || exit 1 - + + # Make sure the cache file builds + graph-tools-cache-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: cmake + run: cmake -B build -S . -C cmake/caches/GraphTools.cmake + - name: build + run: cmake --build build --parallel + build-container: runs-on: ubuntu-latest steps: diff --git a/cmake/caches/FullBuild.cmake b/cmake/caches/FullBuild.cmake new file mode 100644 index 00000000..867a26e5 --- /dev/null +++ b/cmake/caches/FullBuild.cmake @@ -0,0 +1,33 @@ +# This is a CMake cache file for a full build +set(CMAKE_BUILD_TYPE + Release + CACHE STRING "" +) + +# Get external dependencies +set(CUBE_DIR + "extern/install/cubelib" + CACHE STRING "" +) +set(EXTRAP_INCLUDE + "extern/install/extrap/include" + CACHE STRING "" +) +set(EXTRAP_LIB + "extern/install/extrap/lib" + CACHE STRING "" +) + +# Enable all features from MetaCG +set(METACG_BUILD_CGCOLLECTOR + ON + CACHE BOOL "" +) +set(METACG_BUILD_PGIS + ON + CACHE BOOL "" +) +set(METACG_BUILD_GRAPH_TOOLS + ON + CACHE BOOL "" +) diff --git a/cmake/caches/GraphTools.cmake b/cmake/caches/GraphTools.cmake new file mode 100644 index 00000000..3d4c394a --- /dev/null +++ b/cmake/caches/GraphTools.cmake @@ -0,0 +1,19 @@ +# This is a CMake cache file for a full build +set(CMAKE_BUILD_TYPE + Release + CACHE STRING "" +) + +# Enable all features from MetaCG +set(METACG_BUILD_CGCOLLECTOR + OFF + CACHE BOOL "" +) +set(METACG_BUILD_PGIS + OFF + CACHE BOOL "" +) +set(METACG_BUILD_GRAPH_TOOLS + ON + CACHE BOOL "" +)