Skip to content

Commit

Permalink
Use CMakePresets.json (#6)
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
SchaichAlonso authored Feb 18, 2024
1 parent dc70d1f commit efd3eec
Show file tree
Hide file tree
Showing 6 changed files with 539 additions and 27 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
Expand All @@ -28,13 +24,15 @@ jobs:
# # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Configure
working-directory: ${{github.workspace}}
run: cmake --preset ci-x64-windows-vs2022-release

- name: Build
working-directory: ${{github.workspace}}
shell: pwsh
run: ./build.ps1
run: cmake --build --preset ci-x64-windows-vs2022-release

- name: Test
working-directory: ${{github.workspace}}
shell: pwsh
run: ./run.ps1
run: ctest --preset ci-x64-windows-vs2022-release

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.25)

project(VcpkgSQLiteIntegrationDemo CXX)
enable_testing()
Expand Down
Loading

0 comments on commit efd3eec

Please sign in to comment.