Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,33 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache Homebrew
uses: actions/cache@v3
with:
path: |
~/Library/Caches/Homebrew
/usr/local/var/homebrew
key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/tests.yml') }}
restore-keys: |
${{ runner.os }}-brew-

- name: Install dependencies
run: |
brew install cmake googletest qt6
brew install cmake ninja qt6 googletest
echo "$(brew --prefix qt6)/bin" >> $GITHUB_PATH

- name: Configure project
run: |
cmake -S . -B build -DCMAKE_PREFIX_PATH=$(brew --prefix qt6)
cmake -S . -B build \
-G Ninja \
-DCMAKE_PREFIX_PATH=$(brew --prefix qt6) \
-DCMAKE_BUILD_TYPE=Release

- name: Build tests
run: |
cmake --build build --target tests
cmake --build build --target tests --parallel $(sysctl -n hw.ncpu)

- name: Run tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/bin
/build
/build/*

main

Expand Down
8 changes: 4 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"version": "0.2.0",
"configurations": [
{
"name": "Run Main",
"name": "Run Project Main",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/main",
"cwd": "${workspaceFolder}",
"MIMode": "lldb",
"preLaunchTask": "Build App",
"preLaunchTask": "Build Project",
"visualizerFile": "/Users/mateuszadamowicz/Library/Application Support/Code/User/workspaceStorage/39f5990b86fcd335d48f145a08be8b3a/tonka3000.qtvsctools/qt.natvis.xml"
},
{
"name": "Run Tests",
"name": "Run Project Tests",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/tests",
"cwd": "${workspaceFolder}",
"MIMode": "lldb",
"preLaunchTask": "Build Tests",
"preLaunchTask": "Build Project Tests",
"externalConsole": false,
"visualizerFile": "/Users/mateuszadamowicz/Library/Application Support/Code/User/workspaceStorage/39f5990b86fcd335d48f145a08be8b3a/tonka3000.qtvsctools/qt.natvis.xml"
}
Expand Down
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"version": "2.0.0",
"tasks": [
{
"label": "Build App",
"label": "Build Project",
"type": "shell",
"command": "cmake --build build --target main",
"group": "build"
},
{
"label": "Build Tests",
"label": "Build Project Tests",
"type": "shell",
"command": "cmake --build build --target tests",
"group": "build"
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "Search Tree Structures"
PROJECT_NAME = "Search-Tree-Structures"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile.bak
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "My Project"
PROJECT_NAME = "Search-Tree-Structures"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🌳 Search Tree Structure
# 🌳 Search-Tree-Structures

## 💡 Overview

Expand Down
Loading