Skip to content

Commit

Permalink
create stable cache of vcpkg directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Sep 18, 2024
1 parent 929fc24 commit a682691
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ runs:

- uses: lukka/get-cmake@v3.30.1

- uses: actions/cache@v4
with:
key: vcpkg-${{ inputs.target }}-${{ hashFiles('./vcpkg.json') }}
path: './vcpkg'

- uses: lukka/run-vcpkg@v11

- uses: lukka/run-cmake@v10
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"hidden": true,
"cacheVariables": {
"ziti_DEVELOPER_MODE": "ON",
"VCPKG_MANIFEST_FEATURES": "test;samples"
"VCPKG_MANIFEST_FEATURES": "dev-features"
}
},
{
Expand Down
9 changes: 9 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
"name": "cli11"
}
]
},
"dev-features": {
"description": "features for development",
"dependencies": [
{
"name": "ziti",
"features": [ "test", "samples" ]
}
]
}
},
"builtin-baseline": "1de2026f28ead93ff1773e6e680387643e914ea1"
Expand Down

0 comments on commit a682691

Please sign in to comment.