diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a3cf59..4e89179 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: | diff --git a/.gitignore b/.gitignore index c386bb1..a65f2bb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /bin /build +/build/* main diff --git a/.vscode/launch.json b/.vscode/launch.json index dfee3d6..fdd54d6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 17f8478..9cabb23 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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" diff --git a/Doxyfile b/Doxyfile index e5adb7f..7d965a3 100644 --- a/Doxyfile +++ b/Doxyfile @@ -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 diff --git a/Doxyfile.bak b/Doxyfile.bak index e0e1fbf..cff410b 100644 --- a/Doxyfile.bak +++ b/Doxyfile.bak @@ -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 diff --git a/README.md b/README.md index 5bc8af5..fc9a3db 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 🌳 Search Tree Structure +# 🌳 Search-Tree-Structures ## 💡 Overview