diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index dbb05739..c1215cef 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -268,19 +268,16 @@ jobs:
- name: Install rst2html
run: python -m pip install --upgrade pip rst2html
- - name: Restore artifacts, or run vcpkg, build and cache artifacts
- uses: lukka/run-vcpkg@v7.4
+ - name: Restore artifacts, or setup vcpkg (do not install any package)
+ uses: lukka/run-vcpkg@v10
with:
- vcpkgGitCommitId: 'a69b65229b3956b7f45abd81671b7330114bcaad'
- vcpkgArguments: 'openssl lz4 lzo pkcs11-helper tap-windows6'
- vcpkgTriplet: '${{ matrix.triplet }}-windows-ovpn'
- cleanAfterBuild: false
+ vcpkgGitCommitId: '4b766c1cd17205e1b768c4fadfd5f867c1d0510e'
- - name: Build
+ - name: Run MSBuild consuming vcpkg.json
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
- vcpkg integrate install
- msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform="${{ matrix.plat }}" .
+ vcpkg integrate install
+ msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform="${{ matrix.plat }}" .
- name: Archive artifacts
uses: actions/upload-artifact@v2
diff --git a/.gitignore b/.gitignore
index 178076ed..7335154f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,7 @@ m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
+vcpkg_installed
version.sh
msvc-env-local.bat
diff --git a/src/openvpn/openvpn.vcxproj b/src/openvpn/openvpn.vcxproj
index 05c63b03..7f09249b 100644
--- a/src/openvpn/openvpn.vcxproj
+++ b/src/openvpn/openvpn.vcxproj
@@ -124,26 +124,35 @@
true
arm64-windows-ovpn
+ --overlay-triplets=$(SolutionDir)contrib\vcpkg-triplets --overlay-ports=$(SolutionDir)contrib\vcpkg-ports
true
arm64-windows-ovpn
+ --overlay-triplets=$(SolutionDir)contrib\vcpkg-triplets --overlay-ports=$(SolutionDir)contrib\vcpkg-ports
true
x86-windows-ovpn
+ --overlay-triplets=$(SolutionDir)contrib\vcpkg-triplets --overlay-ports=$(SolutionDir)contrib\vcpkg-ports
true
x86-windows-ovpn
+ --overlay-triplets=$(SolutionDir)contrib\vcpkg-triplets --overlay-ports=$(SolutionDir)contrib\vcpkg-ports
true
x64-windows-ovpn
+ --overlay-triplets=$(SolutionDir)contrib\vcpkg-triplets --overlay-ports=$(SolutionDir)contrib\vcpkg-ports
true
x64-windows-ovpn
+ --overlay-triplets=$(SolutionDir)contrib\vcpkg-triplets --overlay-ports=$(SolutionDir)contrib\vcpkg-ports
+
+
+ true
diff --git a/src/openvpn/vcpkg.json b/src/openvpn/vcpkg.json
new file mode 100644
index 00000000..a5509736
--- /dev/null
+++ b/src/openvpn/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
+ "name": "openvpn",
+ "version": "2.5",
+ "dependencies": [
+ "openssl",
+ "tap-windows6",
+ "lzo",
+ "pkcs11-helper"
+ ],
+ "builtin-baseline": "4b766c1cd17205e1b768c4fadfd5f867c1d0510e",
+ "overrides": [
+ {
+ "name": "openssl",
+ "version-string": "1.1.1n"
+ }
+ ]
+}