mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-02 20:18:35 +00:00
Merge branch 'update_windows_build_deps' into 'master'
Use 2026-01-20 vcpkg deps for windows Closes #8918 and #8374 See merge request OpenMW/openmw!5120
This commit is contained in:
commit
5ef5526f66
4 changed files with 18 additions and 18 deletions
16
.github/workflows/windows.yml
vendored
16
.github/workflows/windows.yml
vendored
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
- name: Download prebuilt vcpkg packages
|
||||
working-directory: ${{ github.workspace }}/deps
|
||||
run: |
|
||||
$MANIFEST = "vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}.txt"
|
||||
$MANIFEST = "vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}-manifest.txt"
|
||||
curl --fail --retry 3 -L -o "$MANIFEST" "https://gitlab.com/OpenMW/openmw-deps/-/raw/main/windows/$MANIFEST"
|
||||
$lines = Get-Content "$MANIFEST"
|
||||
$URL = $lines[0]
|
||||
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
|
||||
- name: Extract archived prebuilt vcpkg packages
|
||||
working-directory: ${{ github.workspace }}/deps
|
||||
run: 7z x -y -ovcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }} $env:archive
|
||||
run: 7z x -y -ovcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }} $env:archive
|
||||
|
||||
- name: Cache Qt
|
||||
id: qt-cache
|
||||
|
|
@ -98,12 +98,12 @@ jobs:
|
|||
-B ${{ github.workspace }}/build
|
||||
-G Ninja
|
||||
-D CMAKE_BUILD_TYPE=${{ inputs.build-type }}
|
||||
-D CMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/scripts/buildsystems/vcpkg.cmake'
|
||||
-D CMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/deps/vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/scripts/buildsystems/vcpkg.cmake'
|
||||
-D CMAKE_PREFIX_PATH='${{ github.workspace }}/deps/Qt/6.6.3/msvc2019_64'
|
||||
${{ inputs.package && '-D CMAKE_CXX_FLAGS_RELEASE="/O2 /Ob2 /DNDEBUG /Zi"' || '' }}
|
||||
${{ inputs.package && '-D "CMAKE_EXE_LINKER_FLAGS_RELEASE=/DEBUG /INCREMENTAL:NO"' || '' }}
|
||||
-D LuaJit_INCLUDE_DIR='${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/include/luajit'
|
||||
-D LuaJit_LIBRARY='${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/lib/lua51.lib'
|
||||
-D LuaJit_INCLUDE_DIR='${{ github.workspace }}/deps/vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/include/luajit'
|
||||
-D LuaJit_LIBRARY='${{ github.workspace }}/deps/vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/lib/lua51.lib'
|
||||
-D BUILD_BENCHMARKS=${{ ! inputs.package }}
|
||||
-D BUILD_COMPONENTS_TESTS=${{ ! inputs.package }}
|
||||
-D BUILD_OPENMW_TESTS=${{ ! inputs.package }}
|
||||
|
|
@ -118,9 +118,9 @@ jobs:
|
|||
|
||||
- name: Copy missing DLLs
|
||||
run: |
|
||||
cp ${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/Release/MyGUIEngine.dll ${{ github.workspace }}/build
|
||||
cp -Filter *.dll -Recurse ${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/osgPlugins-3.6.5 ${{ github.workspace }}/build
|
||||
cp ${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/*.dll ${{ github.workspace }}/build
|
||||
cp ${{ github.workspace }}/deps/vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/Release/MyGUIEngine.dll ${{ github.workspace }}/build
|
||||
cp -Filter *.dll -Recurse ${{ github.workspace }}/deps/vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/osgPlugins-3.6.5 ${{ github.workspace }}/build
|
||||
cp ${{ github.workspace }}/deps/vcpkg-x64-windows-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/*.dll ${{ github.workspace }}/build
|
||||
|
||||
- name: Copy Qt DLLs
|
||||
working-directory: ${{ github.workspace }}/deps/Qt/6.6.3/msvc2019_64
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ download() {
|
|||
shift
|
||||
|
||||
if ! [ -f $FILE ]; then
|
||||
printf " Downloading $FILE... "
|
||||
printf " Downloading $FILE from $URL... "
|
||||
|
||||
if [ -z $VERBOSE ]; then
|
||||
RET=0
|
||||
|
|
@ -553,10 +553,10 @@ source "$(dirname -- "${BASH_SOURCE[0]}")/deps_versions.msvc.sh"
|
|||
# versions that don't affect the CI cache can go here
|
||||
AQT_VERSION='v3.1.15'
|
||||
|
||||
VCPKG_PATH="vcpkg-x64-${VS_VERSION:?}-${VCPKG_TAG:?}"
|
||||
VCPKG_PDB_PATH="vcpkg-x64-${VS_VERSION:?}-pdb-${VCPKG_TAG:?}"
|
||||
VCPKG_MANIFEST="${VCPKG_PATH:?}.txt"
|
||||
VCPKG_PDB_MANIFEST="${VCPKG_PDB_PATH:?}.txt"
|
||||
VCPKG_PATH="vcpkg-x64-windows-${VS_VERSION:?}-${VCPKG_TAG:?}"
|
||||
VCPKG_PDB_PATH="vcpkg-x64-windows-${VS_VERSION:?}-pdb-${VCPKG_TAG:?}"
|
||||
VCPKG_MANIFEST="${VCPKG_PATH:?}-manifest.txt"
|
||||
VCPKG_PDB_MANIFEST="${VCPKG_PDB_PATH:?}-manifest.txt"
|
||||
|
||||
echo
|
||||
echo "==================================="
|
||||
|
|
@ -856,13 +856,13 @@ if [ -n "$ACTIVATE_MSVC" ]; then
|
|||
echo "vswhere was unable to find MSVC $MSVC_DISPLAY_YEAR"
|
||||
wrappedExit 1
|
||||
fi
|
||||
|
||||
|
||||
echo "@\"${MSVC_INSTALLATION_PATH}\Common7\Tools\VsDevCmd.bat\" -no_logo -arch=$([ $BITS -eq 64 ] && echo "amd64" || echo "x86") -host_arch=$([ $(uname -m) == 'x86_64' ] && echo "amd64" || echo "x86")" > ActivateMSVC.bat
|
||||
|
||||
|
||||
cp "../CI/activate_msvc.sh" .
|
||||
sed -i "s/\$MSVC_DISPLAY_YEAR/$MSVC_DISPLAY_YEAR/g" activate_msvc.sh
|
||||
source ./activate_msvc.sh
|
||||
|
||||
|
||||
cp "../CI/ActivateMSVC.ps1" .
|
||||
sed -i "s/\$MSVC_DISPLAY_YEAR/$MSVC_DISPLAY_YEAR/g" ActivateMSVC.ps1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
QT_VER='6.6.3'
|
||||
VCPKG_TAG="2025-07-23"
|
||||
VCPKG_TAG='2026-01-20'
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
VCPKG_DEPS_TAG=2025-07-23
|
||||
VCPKG_DEPS_TAG=2026-01-20
|
||||
|
|
|
|||
Loading…
Reference in a new issue