opt: vcpkg manifest error (#1565)

* opt: vcpkg manifest error

* opt: seperate breadpad into feature

* fix: vcpkg manifest mode
This commit is contained in:
xiaoyifang 2024-06-12 17:54:56 +08:00 committed by GitHub
parent d16fb0bb83
commit 5993bc9d1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View file

@ -140,12 +140,16 @@ jobs:
echo "$VAR_VERSION-$VAR_SUFFIX.$release_date.$current_tag">version.txt
cat version.txt
echo "$version"
# rename the vcpkg.json. with this file existed,the vcpkg action will fall to manifest mode
- name: remove vcpkg.json
shell: bash
run: |
mv vcpkg.json vcpkg.json.bak
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
# pkgs: ffmpeg[core,avcodec,avformat,mp3lame,opus,speex,swresample,vorbis,fdk-aac,gpl] breakpad
#manifest-dir: ${{ github.workspace }}
pkgs: breakpad
triplet: x64-windows-release
token: ${{ github.token }}

View file

@ -13,5 +13,11 @@
"xapian",
"zlib",
"openssl"
]
],
"features": {
"breakpad": {
"description": "enable breakpad crash reporting",
"dependencies": [ "breakpad" ]
}
}
}