|
12 | 12 | fail-fast: false |
13 | 13 | matrix: |
14 | 14 | configuration: [Debug ,Release] |
15 | | - platform: [x86 ,x64] |
| 15 | + platform: [x86 ,x64 ,ARM64] |
16 | 16 |
|
17 | 17 | runs-on: windows-latest # 最新的 Windows 环境 |
18 | 18 |
|
|
50 | 50 | ./vcpkg.exe install sdl2:x64-windows |
51 | 51 | ./vcpkg.exe integrate install |
52 | 52 | shell: pwsh |
| 53 | + - name: vcpkg install (Arm64) |
| 54 | + if: matrix.platform == 'ARM64' |
| 55 | + run: | |
| 56 | + cd vcpkg |
| 57 | + ./bootstrap-vcpkg.bat |
| 58 | + ./vcpkg.exe install sdl2:Arm64-windows |
| 59 | + ./vcpkg.exe integrate install |
| 60 | + shell: pwsh |
53 | 61 |
|
54 | 62 | - name: Set up Dependency x86_64 Environment |
55 | 63 | if: matrix.platform == 'x64' |
|
71 | 79 | echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append |
72 | 80 | echo "XENGINE_LIB32=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append |
73 | 81 | shell: pwsh |
74 | | - |
| 82 | + - name: Set up Dependency x86_32 Environment |
| 83 | + if: matrix.platform == 'ARM64' |
| 84 | + run: | |
| 85 | + $response = Invoke-RestMethod -Uri "https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"} |
| 86 | + $latest_tag = $response.tag_name |
| 87 | + Write-Host "Latest Tag: $latest_tag" |
| 88 | + |
| 89 | + $url = "https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Windows_Arm64.zip" |
| 90 | + Invoke-WebRequest -Uri $url -OutFile "XEngine_Windows_Arm64.zip" |
| 91 | + Expand-Archive -Path ./XEngine_Windows_Arm64.zip -DestinationPath ./XEngine_Windows -Force |
| 92 | + |
| 93 | + echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append |
| 94 | + echo "XENGINE_LibArm64=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append |
| 95 | + shell: pwsh |
| 96 | + |
75 | 97 | - name: Setup MSBuild |
76 | 98 | uses: microsoft/setup-msbuild@v2 |
77 | 99 |
|
|
0 commit comments