Skip to content

Commit f1829f3

Browse files
authored
YT-CPPHGL-1: Prepare the repository for the HGL module implementation
- Updated the license comments and the licence verification script - Created a new `include/hgl` directory with a dummy implementation file - Moved the current CPP-GL test files to a dedicated `tests/source/gl` directory - Created a new `tests/source/hgl` directory with a dummy test file for the HGL module - Aligned the testing CMake file to define executables for the GL and HGL modules separately - Removed the library namespace aliases in test files - Aligned the github workflows to properly execute both GL and HGL module tests
1 parent 9b3ed9c commit f1829f3

File tree

111 files changed

+1070
-1073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1070
-1073
lines changed

.github/workflows/clang.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: clang++
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/clang.yaml
88
- include/**
@@ -19,10 +19,10 @@ jobs:
1919

2020
- name: Prepare
2121
env:
22-
CC: clang-17
22+
CC: clang-17
2323
CXX: clang++-17
2424
run: |
25-
cmake -B build -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
25+
cmake -B build -DBUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
2626
continue-on-error: false
2727

2828
- name: Build test executable
@@ -32,5 +32,5 @@ jobs:
3232

3333
- name: Run tests
3434
run: |
35-
./build/tests/run
36-
continue-on-error: false
35+
./build/tests/gl
36+
./build/tests/hgl

.github/workflows/gpp.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ name: g++
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/gpp.yaml
88
- include/**
99
- tests/**
1010

11-
1211
jobs:
1312
build:
1413
name: Build and run tests
@@ -20,10 +19,10 @@ jobs:
2019

2120
- name: Prepare
2221
env:
23-
CC: gcc-13
22+
CC: gcc-13
2423
CXX: g++-13
2524
run: |
26-
cmake -B build -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
25+
cmake -B build -DBUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
2726
continue-on-error: false
2827

2928
- name: Build test executable
@@ -33,4 +32,5 @@ jobs:
3332

3433
- name: Run tests
3534
run: |
36-
./build/tests/run
35+
./build/tests/gl
36+
./build/tests/hgl

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# editor files
22
.vscode/
33
.idea/
4+
.zed/
45

56
# build files
67
*.exe

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ else()
88
endif()
99

1010
project(cpp-gl
11-
VERSION 1.0.4
11+
VERSION 2.0.0
1212
DESCRIPTION "General purpose header-only template graph library for C++20"
1313
HOMEPAGE_URL "https://github.com/SpectraL519/cpp-gl"
1414
LANGUAGES CXX
1515
)
1616

17-
option(BUILD_TESTS "Build project tests" ON)
17+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
18+
option(BUILD_TESTS "Build project tests" OFF)
1819

1920
# Set the proper cxx standard
2021
if(NOT DEFINED CMAKE_CXX_STANDARD)

include/gl/algorithm/breadth_first_search.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Jakub Musiał
1+
// Copyright (c) 2024-2026 Jakub Musiał
22
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
33
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
44

include/gl/algorithm/coloring.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Jakub Musiał
1+
// Copyright (c) 2024-2026 Jakub Musiał
22
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
33
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
44

include/gl/algorithm/constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Jakub Musiał
1+
// Copyright (c) 2024-2026 Jakub Musiał
22
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
33
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
44

include/gl/algorithm/deapth_first_search.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Jakub Musiał
1+
// Copyright (c) 2024-2026 Jakub Musiał
22
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
33
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
44

include/gl/algorithm/dijkstra.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Jakub Musiał
1+
// Copyright (c) 2024-2026 Jakub Musiał
22
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
33
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
44

include/gl/algorithm/impl/bfs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 Jakub Musiał
1+
// Copyright (c) 2024-2026 Jakub Musiał
22
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
33
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
44

0 commit comments

Comments
 (0)