1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-28 03:57:02 +02:00

Merge pull request #3256 from vcmi/tbb-no-debug

TBB: use 1.7 vcpkg prebuild libs for msvc
This commit is contained in:
Andrii Danylchenko 2023-12-04 10:32:39 +02:00 committed by GitHub
commit 613d5a6afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View File

@ -84,6 +84,7 @@ jobs:
os: macos-12 os: macos-12
test: 0 test: 0
pack: 1 pack: 1
pack_type: Release
extension: dmg extension: dmg
preset: macos-conan-ninja-release preset: macos-conan-ninja-release
conan_profile: macos-intel conan_profile: macos-intel
@ -93,6 +94,7 @@ jobs:
os: macos-12 os: macos-12
test: 0 test: 0
pack: 1 pack: 1
pack_type: Release
extension: dmg extension: dmg
preset: macos-arm-conan-ninja-release preset: macos-arm-conan-ninja-release
conan_profile: macos-arm conan_profile: macos-arm
@ -102,6 +104,7 @@ jobs:
os: macos-12 os: macos-12
test: 0 test: 0
pack: 1 pack: 1
pack_type: Release
extension: ipa extension: ipa
preset: ios-release-conan-ccache preset: ios-release-conan-ccache
conan_profile: ios-arm64 conan_profile: ios-arm64
@ -110,12 +113,14 @@ jobs:
os: windows-latest os: windows-latest
test: 0 test: 0
pack: 1 pack: 1
pack_type: RelWithDebInfo
extension: exe extension: exe
preset: windows-msvc-release-ccache preset: windows-msvc-release-ccache
- platform: mingw-ubuntu - platform: mingw-ubuntu
os: ubuntu-22.04 os: ubuntu-22.04
test: 0 test: 0
pack: 1 pack: 1
pack_type: Release
extension: exe extension: exe
cpack_args: -D CPACK_NSIS_EXECUTABLE=`which makensis` cpack_args: -D CPACK_NSIS_EXECUTABLE=`which makensis`
cmake_args: -G Ninja cmake_args: -G Ninja
@ -246,7 +251,7 @@ jobs:
run: | run: |
cd '${{github.workspace}}/out/build/${{matrix.preset}}' cd '${{github.workspace}}/out/build/${{matrix.preset}}'
CPACK_PATH=`which -a cpack | grep -m1 -v -i chocolatey` CPACK_PATH=`which -a cpack | grep -m1 -v -i chocolatey`
"$CPACK_PATH" -C ${{env.BUILD_TYPE}} ${{ matrix.cpack_args }} "$CPACK_PATH" -C ${{matrix.pack_type}} ${{ matrix.cpack_args }}
test -f '${{github.workspace}}/CI/${{matrix.platform}}/post_pack.sh' \ test -f '${{github.workspace}}/CI/${{matrix.platform}}/post_pack.sh' \
&& '${{github.workspace}}/CI/${{matrix.platform}}/post_pack.sh' '${{github.workspace}}' "$(ls '${{ env.VCMI_PACKAGE_FILE_NAME }}'.*)" && '${{github.workspace}}/CI/${{matrix.platform}}/post_pack.sh' '${{github.workspace}}' "$(ls '${{ env.VCMI_PACKAGE_FILE_NAME }}'.*)"
rm -rf _CPack_Packages rm -rf _CPack_Packages
@ -279,6 +284,14 @@ jobs:
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
path: | path: |
${{ env.ANDROID_APK_PATH }} ${{ env.ANDROID_APK_PATH }}
- name: Symbols
if: ${{ matrix.platform == 'msvc' }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - symbols
path: |
${{github.workspace}}/**/*.pdb
- name: Android JNI ${{matrix.platform}} - name: Android JNI ${{matrix.platform}}
if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/master' }} if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/master' }}

View File

@ -1,5 +1,5 @@
curl -LfsS -o "vcpkg-export-${VCMI_BUILD_PLATFORM}-windows-v143.7z" \ curl -LfsS -o "vcpkg-export-${VCMI_BUILD_PLATFORM}-windows-v143.7z" \
"https://github.com/vcmi/vcmi-deps-windows/releases/download/v1.6/vcpkg-export-${VCMI_BUILD_PLATFORM}-windows-v143.7z" "https://github.com/vcmi/vcmi-deps-windows/releases/download/v1.7/vcpkg-export-${VCMI_BUILD_PLATFORM}-windows-v143.7z"
7z x "vcpkg-export-${VCMI_BUILD_PLATFORM}-windows-v143.7z" 7z x "vcpkg-export-${VCMI_BUILD_PLATFORM}-windows-v143.7z"
#rm -r -f vcpkg/installed/${VCMI_BUILD_PLATFORM}-windows/debug #rm -r -f vcpkg/installed/${VCMI_BUILD_PLATFORM}-windows/debug

View File

@ -715,6 +715,11 @@ endif(WIN32)
# Packaging section # # Packaging section #
####################################### #######################################
if(MSVC)
SET(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ${BIN_DIR})
Include(InstallRequiredSystemLibraries)
endif()
set(CPACK_PACKAGE_VERSION_MAJOR ${VCMI_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MAJOR ${VCMI_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${VCMI_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_MINOR ${VCMI_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${VCMI_VERSION_PATCH}) set(CPACK_PACKAGE_VERSION_PATCH ${VCMI_VERSION_PATCH})

View File

@ -327,8 +327,7 @@
{ {
"name": "windows-msvc-release", "name": "windows-msvc-release",
"configurePreset": "windows-msvc-release", "configurePreset": "windows-msvc-release",
"inherits": "default-release", "inherits": "default-release"
"configuration": "Release"
}, },
{ {
"name": "windows-msvc-release-ccache", "name": "windows-msvc-release-ccache",