mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-07-27 10:50:27 +00:00
Update Windows Github Actions runner from 2019 to 2022 (#309)
* Attempt to update Windows action runner to 2022 * Fix VS path
This commit is contained in:
parent
b617456aa1
commit
0078be8e9a
6
.github/workflows/check-builds.yaml
vendored
6
.github/workflows/check-builds.yaml
vendored
@ -60,7 +60,7 @@ jobs:
|
|||||||
path: bin
|
path: bin
|
||||||
|
|
||||||
windows-build:
|
windows-build:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
- name: Set environment
|
- name: Set environment
|
||||||
run: $s = $env:GITHUB_SHA.subString(0, 7); echo "SHORT_SHA=$s" >> $env:GITHUB_ENV
|
run: $s = $env:GITHUB_SHA.subString(0, 7); echo "SHORT_SHA=$s" >> $env:GITHUB_ENV
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
$configurations = "Release"
|
$configurations = "Release"
|
||||||
# "Debug" builds are disabled, since we don't really need them
|
# "Debug" builds are disabled, since we don't really need them
|
||||||
|
|
||||||
$vsPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
|
$vsPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
|
||||||
|
|
||||||
Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
|
Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
|
||||||
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
|
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
|
||||||
@ -111,7 +111,7 @@ jobs:
|
|||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: 'windows-vs2019-bin-x64-${{ env.SHORT_SHA }}'
|
name: 'windows-vs2022-bin-x64-${{ env.SHORT_SHA }}'
|
||||||
path: bin
|
path: bin
|
||||||
|
|
||||||
copy-artifacts:
|
copy-artifacts:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user