Skip to content

Commit

Permalink
remove hardcoded repository url
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksisch committed Oct 28, 2024
1 parent 9a88dda commit e2987d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cmake_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion codelab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)

Expand Down

0 comments on commit e2987d3

Please sign in to comment.