Skip to content

Commit

Permalink
Remove Regex component (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Jan 27, 2025
1 parent 71b30bf commit 17246ed
Show file tree
Hide file tree
Showing 123 changed files with 0 additions and 48,651 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
cxx: clang++
type: static
shell: sh
benchmark: macos/llvm
- os: macos-latest
cc: clang
cxx: clang++
Expand All @@ -36,13 +35,11 @@ jobs:
cxx: clang++
type: static
shell: sh
benchmark: linux/llvm
- os: ubuntu-latest
cc: gcc
cxx: g++
type: static
shell: sh
benchmark: linux/gcc
- os: ubuntu-latest
cc: clang
cxx: clang++
Expand All @@ -56,7 +53,6 @@ jobs:
- os: windows-latest
type: static
shell: pwsh
benchmark: windows/msvc
- os: windows-latest
type: shared
shell: pwsh
Expand Down Expand Up @@ -103,7 +99,6 @@ jobs:
-DBUILD_SHARED_LIBS:BOOL=OFF
-DNOA_DOCS:BOOL=OFF
-DNOA_TESTS:BOOL=ON
-DNOA_BENCHMARK:BOOL=ON
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
${{ matrix.platform.options }}
- name: Configure Noa (shared)
Expand All @@ -114,7 +109,6 @@ jobs:
-DBUILD_SHARED_LIBS:BOOL=ON
-DNOA_DOCS:BOOL=OFF
-DNOA_TESTS:BOOL=ON
-DNOA_BENCHMARK:BOOL=ON
-DCMAKE_COMPILE_WARNING_AS_ERROR:BOOL=ON
${{ matrix.platform.options }}
- run: cmake --build ./build --config Release --target clang_format_test
Expand All @@ -133,21 +127,3 @@ jobs:
env:
# See https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
UBSAN_OPTIONS: print_stacktrace=1

- run: cmake --build ./build --config Release --verbose --target benchmark_all
if: matrix.platform.benchmark
- run: cmake --build ./build --config Release --verbose --target benchmark_json
if: matrix.platform.benchmark

- uses: benchmark-action/github-action-benchmark@v1
if: matrix.platform.benchmark
with:
name: Benchmark (${{ matrix.platform.benchmark }})
tool: googlecpp
output-file-path: build/benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: ${{ github.event_name != 'pull_request' }}
benchmark-data-dir-path: benchmark/${{ matrix.platform.benchmark }}
alert-threshold: '5%'
comment-always: true
fail-on-alert: false
1 change: 0 additions & 1 deletion .github/workflows/website-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
-DCMAKE_BUILD_TYPE:STRING=Release
-DNOA_HASH:BOOL=OFF
-DNOA_FLAT_MAP:BOOL=OFF
-DNOA_REGEX:BOOL=OFF
-DNOA_GOOGLETEST:BOOL=OFF
-DNOA_GOOGLEBENCHMARK:BOOL=OFF
-DNOA_DOCS:BOOL=ON
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
-DCMAKE_BUILD_TYPE:STRING=Release
-DNOA_HASH:BOOL=OFF
-DNOA_FLAT_MAP:BOOL=OFF
-DNOA_REGEX:BOOL=OFF
-DNOA_GOOGLETEST:BOOL=OFF
-DNOA_GOOGLEBENCHMARK:BOOL=OFF
-DNOA_DOCS:BOOL=ON
Expand Down
16 changes: 0 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ include(noa)
# Options
option(NOA_HASH "Build the Noa Hash library" ON)
option(NOA_FLAT_MAP "Build the Noa Flat Map library" ON)
option(NOA_REGEX "Build the Noa Regex library" ON)
option(NOA_GOOGLETEST "Build the Google Test library" ON)
option(NOA_GOOGLEBENCHMARK "Build the Google Benchmark library" ON)
option(NOA_TESTS "Build the Noa tests" OFF)
option(NOA_BENCHMARK "Build the Noa benchmarks" OFF)
option(NOA_DOCS "Build the Noa docs" OFF)
option(NOA_INSTALL "Install the Noa library" ON)
option(NOA_ADDRESS_SANITIZER "Build Noa with an address sanitizer" OFF)
Expand Down Expand Up @@ -42,11 +40,6 @@ if(NOA_FLAT_MAP)
add_subdirectory(src/flat_map)
endif()

if(NOA_REGEX)
find_package(BoostRegex REQUIRED)
add_subdirectory(src/regex)
endif()

if(NOA_GOOGLETEST)
find_package(GoogleTest REQUIRED)
endif()
Expand All @@ -64,7 +57,6 @@ endif()

if(PROJECT_IS_TOP_LEVEL)
noa_target_clang_format(SOURCES
benchmark/*.h benchmark/*.cc
src/*.h src/*.cc
test/*.h test/*.cc)
noa_target_clang_tidy(SOURCES
Expand All @@ -82,10 +74,6 @@ if(NOA_TESTS AND NOA_GOOGLETEST)
add_subdirectory(test/flat_map)
endif()

if(NOA_REGEX)
add_subdirectory(test/regex)
endif()

if(PROJECT_IS_TOP_LEVEL)
# Otherwise we need the child project to link
# against the sanitizers too.
Expand All @@ -98,7 +86,3 @@ endif()
if(NOA_GOOGLEBENCHMARK)
find_package(GoogleBenchmark REQUIRED)
endif()

if(NOA_BENCHMARK AND NOA_GOOGLEBENCHMARK)
add_subdirectory(benchmark)
endif()
1 change: 0 additions & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vendorpull https://github.com/sourcemeta/vendorpull dea311b5bfb53b6926a4140267959ae334d3ecf4
googletest https://github.com/google/googletest a7f443b80b105f940225332ed3c31f2790092f47
googlebenchmark https://github.com/google/benchmark 378fe693a1ef51500db21b11ff05a8018c5f0e55
boost-regex https://github.com/boostorg/regex boost-1.86.0
36 changes: 0 additions & 36 deletions benchmark/CMakeLists.txt

This file was deleted.

37 changes: 0 additions & 37 deletions benchmark/regex.cc

This file was deleted.

184 changes: 0 additions & 184 deletions cmake/FindBoostRegex.cmake

This file was deleted.

Loading

0 comments on commit 17246ed

Please sign in to comment.