mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 07:16:31 -04:00
Replace Windows Server 2019 with 2025
This commit is contained in:
parent
4520eb077d
commit
00e7439533
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -104,8 +104,8 @@ jobs:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
image:
|
||||
- "2019"
|
||||
- "2022"
|
||||
- "2025"
|
||||
|
||||
uses: ./.github/workflows/windows.yml
|
||||
with:
|
||||
|
30
.github/workflows/windows.yml
vendored
30
.github/workflows/windows.yml
vendored
@ -4,9 +4,13 @@ on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
image:
|
||||
description: MSVC image (2019/2022)
|
||||
description: Window Server image
|
||||
required: true
|
||||
type: string
|
||||
msvc:
|
||||
description: MSVC version (2019/2022)
|
||||
default: "2022"
|
||||
type: string
|
||||
vcpkg-deps-tag:
|
||||
description: Git tag of our deps
|
||||
required: true
|
||||
@ -45,7 +49,7 @@ jobs:
|
||||
- name: Download prebuilt vcpkg packages
|
||||
working-directory: ${{ github.workspace }}/deps
|
||||
run: |
|
||||
$MANIFEST = "vcpkg-x64-${{ inputs.image }}-${{ inputs.vcpkg-deps-tag }}.txt"
|
||||
$MANIFEST = "vcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }}.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]
|
||||
@ -61,7 +65,7 @@ jobs:
|
||||
|
||||
- name: Extract archived prebuilt vcpkg packages
|
||||
working-directory: ${{ github.workspace }}/deps
|
||||
run: 7z x -y -ovcpkg-x64-${{ inputs.image }}-${{ inputs.vcpkg-deps-tag }} $env:archive
|
||||
run: 7z x -y -ovcpkg-x64-${{ inputs.msvc }}-${{ inputs.vcpkg-deps-tag }} $env:archive
|
||||
|
||||
- name: Cache Qt
|
||||
id: qt-cache
|
||||
@ -94,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.image }}-${{ inputs.vcpkg-deps-tag }}/scripts/buildsystems/vcpkg.cmake'
|
||||
-D CMAKE_TOOLCHAIN_FILE='${{ github.workspace }}/deps/vcpkg-x64-${{ 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.image }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/include/luajit'
|
||||
-D LuaJit_LIBRARY='${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.image }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/lib/lua51.lib'
|
||||
-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 BUILD_BENCHMARKS=${{ ! inputs.package }}
|
||||
-D BUILD_COMPONENTS_TESTS=${{ ! inputs.package }}
|
||||
-D BUILD_OPENMW_TESTS=${{ ! inputs.package }}
|
||||
@ -114,9 +118,9 @@ jobs:
|
||||
|
||||
- name: Copy missing DLLs
|
||||
run: |
|
||||
cp ${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.image }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/Release/MyGUIEngine.dll ${{ github.workspace }}/build
|
||||
cp -Filter *.dll -Recurse ${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.image }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/osgPlugins-3.6.5 ${{ github.workspace }}/build
|
||||
cp ${{ github.workspace }}/deps/vcpkg-x64-${{ inputs.image }}-${{ inputs.vcpkg-deps-tag }}/installed/x64-windows/bin/*.dll ${{ github.workspace }}/build
|
||||
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
|
||||
|
||||
- name: Copy Qt DLLs
|
||||
working-directory: ${{ github.workspace }}/deps/Qt/6.6.3/msvc2019_64
|
||||
@ -172,7 +176,7 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
job_url=$(gh run --repo ${{ github.repository }} view ${{ github.run_id }} --json jobs --jq '.jobs[] | select(.name == "windows-${{ inputs.image }}") | .url')
|
||||
job_url=$(gh run --repo ${{ github.repository }} view ${{ github.run_id }} --json jobs --jq '.jobs[] | select(.name == "windows-${{ inputs.msvc }}") | .url')
|
||||
printf "Ref ${{ github.ref }}\nJob ${job_url}\nCommit ${{ github.sha }}\n" > install/CI-ID.txt
|
||||
cp install/CI-ID.txt pdb/CI-ID.txt
|
||||
cp install/CI-ID.txt SymStore/CI-ID.txt
|
||||
@ -180,19 +184,19 @@ jobs:
|
||||
- name: Store OpenMW archived pdb files
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openmw-windows-${{ inputs.image }}-pdb-${{ github.sha }}
|
||||
name: openmw-windows-${{ inputs.msvc }}-pdb-${{ github.sha }}
|
||||
path: ${{ github.workspace }}/pdb/*
|
||||
|
||||
- name: Store OpenMW build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openmw-windows-${{ inputs.image }}-${{ github.sha }}
|
||||
name: openmw-windows-${{ inputs.msvc }}-${{ github.sha }}
|
||||
path: ${{ github.workspace }}/install/*
|
||||
|
||||
- name: Store symbol server artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: openmw-windows-${{ inputs.image }}-sym-store-${{ github.sha }}
|
||||
name: openmw-windows-${{ inputs.msvc }}-sym-store-${{ github.sha }}
|
||||
path: ${{ github.workspace }}/SymStore/*
|
||||
|
||||
- name: Upload to symbol server
|
||||
|
Loading…
x
Reference in New Issue
Block a user