build: use vs2026 in publish (#15806)

* build: publish remove Visual Studio 17 2022

* build: test vs2026

* fix: 不小心删多了

* fix: nightly 应该也要改

* fix: 这个好像也得改?
This commit is contained in:
soundofautumn
2026-06-12 15:45:24 +08:00
committed by GitHub
parent 21a8d170d7
commit 38527ffe08
4 changed files with 3 additions and 13 deletions

View File

@@ -51,7 +51,7 @@ jobs:
matrix: matrix:
include: include:
- name: windows-x64 - name: windows-x64
os: windows-latest os: windows-2025-vs2026
rid: win-x64 rid: win-x64
self_contained: true self_contained: true
cmake_preset: windows-publish-x64 cmake_preset: windows-publish-x64

View File

@@ -101,7 +101,7 @@ jobs:
matrix: matrix:
arch: [arm64, x64] arch: [arm64, x64]
fail-fast: false fail-fast: false
runs-on: windows-latest runs-on: windows-2025-vs2026
steps: steps:
- name: Checkout repository - name: Checkout repository

View File

@@ -28,7 +28,7 @@ jobs:
build-win-nightly: build-win-nightly:
name: Build Nightly for Windows name: Build Nightly for Windows
if: github.repository_owner == 'MaaAssistantArknights' if: github.repository_owner == 'MaaAssistantArknights'
runs-on: windows-latest runs-on: windows-2025-vs2026
strategy: strategy:
matrix: matrix:
arch: [x64] arch: [x64]

View File

@@ -217,11 +217,6 @@
"cacheVariables": { "cacheVariables": {
"BUILD_WPF_GUI": "ON" "BUILD_WPF_GUI": "ON"
}, },
"$comment": [
"github actions only support Visual Studio 17 2022",
"see https://github.com/actions/runner-images/issues/13291"
],
"generator": "Visual Studio 17 2022",
"displayName": "Windows x64 Publish" "displayName": "Windows x64 Publish"
}, },
{ {
@@ -233,11 +228,6 @@
"cacheVariables": { "cacheVariables": {
"BUILD_WPF_GUI": "ON" "BUILD_WPF_GUI": "ON"
}, },
"$comment": [
"github actions only support Visual Studio 17 2022",
"see https://github.com/actions/runner-images/issues/13291"
],
"generator": "Visual Studio 17 2022",
"displayName": "Windows arm64 Publish" "displayName": "Windows arm64 Publish"
}, },
{ {