Skip to content

Commit 6e3a706

Browse files
committed
chore: Refactor github hooks and github workflow project tests
1 parent 271c1ed commit 6e3a706

7 files changed

Lines changed: 28 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,33 @@ jobs:
77
runs-on: macos-latest
88

99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
11+
12+
- name: Cache Homebrew
13+
uses: actions/cache@v3
14+
with:
15+
path: |
16+
~/Library/Caches/Homebrew
17+
/usr/local/var/homebrew
18+
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/tests.yml') }}
19+
restore-keys: |
20+
${{ runner.os }}-brew-
1121
1222
- name: Install dependencies
1323
run: |
14-
brew install cmake googletest qt6
24+
brew install cmake ninja qt6 googletest
25+
echo "$(brew --prefix qt6)/bin" >> $GITHUB_PATH
1526
1627
- name: Configure project
1728
run: |
18-
cmake -S . -B build -DCMAKE_PREFIX_PATH=$(brew --prefix qt6)
29+
cmake -S . -B build \
30+
-G Ninja \
31+
-DCMAKE_PREFIX_PATH=$(brew --prefix qt6) \
32+
-DCMAKE_BUILD_TYPE=Release
1933
2034
- name: Build tests
2135
run: |
22-
cmake --build build --target tests
36+
cmake --build build --target tests --parallel $(sysctl -n hw.ncpu)
2337
2438
- name: Run tests
2539
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/bin
88
/build
9+
/build/*
910

1011
main
1112

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Run Main",
5+
"name": "Run Project Main",
66
"type": "cppdbg",
77
"request": "launch",
88
"program": "${workspaceFolder}/build/main",
99
"cwd": "${workspaceFolder}",
1010
"MIMode": "lldb",
11-
"preLaunchTask": "Build App",
11+
"preLaunchTask": "Build Project",
1212
"visualizerFile": "/Users/mateuszadamowicz/Library/Application Support/Code/User/workspaceStorage/39f5990b86fcd335d48f145a08be8b3a/tonka3000.qtvsctools/qt.natvis.xml"
1313
},
1414
{
15-
"name": "Run Tests",
15+
"name": "Run Project Tests",
1616
"type": "cppdbg",
1717
"request": "launch",
1818
"program": "${workspaceFolder}/build/tests",
1919
"cwd": "${workspaceFolder}",
2020
"MIMode": "lldb",
21-
"preLaunchTask": "Build Tests",
21+
"preLaunchTask": "Build Project Tests",
2222
"externalConsole": false,
2323
"visualizerFile": "/Users/mateuszadamowicz/Library/Application Support/Code/User/workspaceStorage/39f5990b86fcd335d48f145a08be8b3a/tonka3000.qtvsctools/qt.natvis.xml"
2424
}

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "Build App",
5+
"label": "Build Project",
66
"type": "shell",
77
"command": "cmake --build build --target main",
88
"group": "build"
99
},
1010
{
11-
"label": "Build Tests",
11+
"label": "Build Project Tests",
1212
"type": "shell",
1313
"command": "cmake --build build --target tests",
1414
"group": "build"

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
4242
# title of most generated pages and in a few other places.
4343
# The default value is: My Project.
4444

45-
PROJECT_NAME = "Search Tree Structures"
45+
PROJECT_NAME = "Search-Tree-Structures"
4646

4747
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
4848
# could be handy for archiving the generated documentation or if some version

Doxyfile.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
4242
# title of most generated pages and in a few other places.
4343
# The default value is: My Project.
4444

45-
PROJECT_NAME = "My Project"
45+
PROJECT_NAME = "Search-Tree-Structures"
4646

4747
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
4848
# could be handy for archiving the generated documentation or if some version

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🌳 Search Tree Structure
1+
# 🌳 Search-Tree-Structures
22

33
## 💡 Overview
44

0 commit comments

Comments
 (0)