Skip to content

Commit ad692fc

Browse files
committed
CI:windows update
1 parent 32d43aa commit ad692fc

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/msbuild.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ on:
1212
jobs:
1313
build:
1414
strategy:
15-
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
1615
fail-fast: false
1716
matrix:
18-
configuration: [Debug ,Release]
19-
platform: [x86 ,x64 ,ARM64]
17+
os:
18+
- windows-11-arm
19+
- windows-latest
20+
configuration:
21+
- Debug
22+
- Release
23+
platform:
24+
- x86
25+
- x64
26+
- ARM64
2027

2128
runs-on: windows-latest # 最新的 Windows 环境
2229

@@ -42,13 +49,13 @@ jobs:
4249

4350
# 设置依赖库的环境变量
4451
- name: Set up Dependency x86_64 Environment
45-
if: matrix.platform == 'x64'
52+
if: matrix.platform == 'x64' || matrix.platform == 'windows-latest'
4653
run: |
4754
echo "XENGINE_INCLUDE=${{ github.workspace }}/xengine" | Out-File -FilePath $env:GITHUB_ENV -Append
4855
echo "XENGINE_LIB64=${{ github.workspace }}/xengine/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
4956
shell: pwsh
5057
- name: Set up Dependency x86_32 Environment
51-
if: matrix.platform == 'x86'
58+
if: matrix.platform == 'x86' || matrix.platform == 'windows-latest'
5259
run: |
5360
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"}
5461
$latest_tag = $response.tag_name
@@ -61,7 +68,7 @@ jobs:
6168
echo "XENGINE_LIB32=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
6269
shell: pwsh
6370
- name: Set up Dependency ARM64 Environment
64-
if: matrix.platform == 'ARM64'
71+
if: matrix.platform == 'ARM64' || matrix.platform == 'windows-11-arm'
6572
run: |
6673
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"}
6774
$latest_tag = $response.tag_name
@@ -113,4 +120,9 @@ jobs:
113120
cp -r XEngine_Source/VSCopy_Arm64.bat XEngine_Release/
114121
cd XEngine_Release
115122
./VSCopy_Arm64.bat
123+
./XEngine_CenterApp -t
124+
./XEngine_Http2App -t
125+
./XEngine_HttpApp -t
126+
./XEngine_SimpleApp -t
127+
./XEngine_WebSocketApp -t
116128
shell: pwsh

0 commit comments

Comments
 (0)