Skip to content

Commit 39f99b0

Browse files
committed
Enable vcpkg testing
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
1 parent b350986 commit 39f99b0

6 files changed

Lines changed: 20 additions & 1 deletion

File tree

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ _commit: da2acba
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: cpp
6-
add_vcpkg: false
6+
add_vcpkg: true
77
add_wiki: true
88
email: 3105306+timkpaine@users.noreply.github.com
99
github: python-project-templates

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252

5353
- uses: actions-ext/cpp/setup@51c484ef64088c62434226039d0e3359f5fc8df6
5454

55+
- uses: actions-ext/cpp/setup-vcpkg-cache@6ded4958b7e13d73428138a01d53c33cb941121d
56+
5557
- name: Install dependencies
5658
run: make develop
5759

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ __pycache__/
1313
*.exp
1414
*.lib
1515

16+
# vcpkg
17+
vcpkg/
18+
vcpkg_installed/
19+
1620
# Rust
1721
target
1822
target-capi

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ packages = [
129129
"cpp",
130130
]
131131

132+
[tool.hatch.build.targets.sdist.force-include]
133+
"vcpkg.json" = "vcpkg.json"
134+
"vcpkg-overlays" = "vcpkg-overlays"
135+
132136

133137
[tool.hatch.build.targets.wheel]
134138
packages = [

vcpkg-overlays/.gitkeep

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

vcpkg.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"dependencies": [],
3+
"configuration": {
4+
"overlay-ports": [
5+
"vcpkg-overlays"
6+
]
7+
}
8+
}

0 commit comments

Comments
 (0)