Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bartpomietlo authored Sep 10, 2024
1 parent 8f93a90 commit 2e48abf
Showing 1 changed file with 18 additions and 30 deletions.
48 changes: 18 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Print GitHub Workspace Directory
run: |
echo "GitHub workspace directory:"
dir
- name: Check for sqlite3.h file
run: |
echo "Checking if sqlite3.h exists..."
dir .\vcpkg\installed\x64-windows\include\sqlite3.h
shell: pwsh

- name: Print Environment Variables
run: |
echo "Printing environment variables:"
Get-ChildItem Env:
shell: pwsh

- name: Set up vcpkg
run: |
echo "Cloning vcpkg repository..."
Expand All @@ -39,12 +22,26 @@ jobs:
.\vcpkg\bootstrap-vcpkg.bat
echo "Installing packages..."
.\vcpkg\vcpkg install boost sqlite3
echo "Vcpkg setup completed."
shell: pwsh

- name: Verify vcpkg Installation
- name: Reinstall sqlite3 using vcpkg
run: |
echo "Listing vcpkg directory:"
dir .\vcpkg
echo "Reinstalling sqlite3..."
.\vcpkg\vcpkg remove sqlite3
.\vcpkg\vcpkg install sqlite3
shell: pwsh

- name: Check for sqlite3.h file
run: |
echo "Checking if sqlite3.h exists..."
dir .\vcpkg\installed\x64-windows\include\sqlite3.h
shell: pwsh

- name: Install sqlite3 with core and tool features
run: |
echo "Installing sqlite3 with additional features..."
.\vcpkg\vcpkg install sqlite3[core,tool]
shell: pwsh

- name: Install Visual Studio Build Tools
run: |
Expand All @@ -62,27 +59,18 @@ jobs:
cd build
echo "Configuring CMake..."
cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake ..
echo "CMake configuration completed."
shell: pwsh

- name: Verify Build Directory
run: |
echo "Listing build directory:"
dir build
shell: pwsh

- name: Build
run: |
cd build
echo "Building project..."
cmake --build . --config Debug
echo "Build completed."
shell: pwsh

- name: Run Tests
run: |
cd build
echo "Running tests..."
ctest -C Debug --output-on-failure
echo "Tests completed."
shell: pwsh

0 comments on commit 2e48abf

Please sign in to comment.