diff --git a/.github/workflows/cmake_test.yml b/.github/workflows/cmake_test.yml index 2ba71239..14454667 100644 --- a/.github/workflows/cmake_test.yml +++ b/.github/workflows/cmake_test.yml @@ -63,6 +63,7 @@ jobs: -D CMAKE_C_COMPILER_LAUNCHER=ccache \ -D CMAKE_CXX_COMPILER_LAUNCHER=ccache \ -D CMAKE_BUILD_TYPE=RelWithDebug \ + -D FUZZTEST_REPOSITORY="${{ github.repositoryUrl }}" \ -D FUZZTEST_REPO_BRANCH="${{ github.head_ref || github.ref_name }}" \ && cmake --build build_codelab -j $(nproc) - name: Run all tests in default mode with clang diff --git a/codelab/CMakeLists.txt b/codelab/CMakeLists.txt index b8cc5672..757197ba 100644 --- a/codelab/CMakeLists.txt +++ b/codelab/CMakeLists.txt @@ -4,12 +4,13 @@ set(CMAKE_CXX_STANDARD 17) include(FetchContent) +set(FUZZTEST_REPOSITORY "FuzzTest repository url." CACHE STRING "https://github.com/google/fuzztest.git") set(FUZZTEST_REPO_BRANCH "FuzzTest repository branch." CACHE STRING "main") message("Building fuzztest at branch " ${FUZZTEST_REPO_BRANCH}) FetchContent_Declare( fuzztest - GIT_REPOSITORY https://github.com/google/fuzztest.git + GIT_REPOSITORY ${FUZZTEST_REPOSITORY} GIT_TAG ${FUZZTEST_REPO_BRANCH} )