mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Compile Windows ARM64 builds using Windows-11 ARM
This allows to distribute the load across completely different hosts and also to make sure it compiles on ARM platforms
This commit is contained in:
parent
6d20a438db
commit
5ce7f4faa5
1 changed files with 9 additions and 5 deletions
12
.github/workflows/shared-build-windows.yml
vendored
12
.github/workflows/shared-build-windows.yml
vendored
|
@ -23,13 +23,13 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
architecture: [
|
architecture: [
|
||||||
{name: 'x64', config: 'x64', toolset: 'x64', arch_option: 'VC-WIN64A'},
|
{name: 'x64', os: 'windows-2025', config: 'x64', toolset: 'x64', arch_option: 'VC-WIN64A' },
|
||||||
{name: 'x86', config: 'Win32', toolset: 'x64_x86', arch_option: 'VC-WIN32' },
|
{name: 'x86', os: 'windows-2025', config: 'Win32', toolset: 'x64_x86', arch_option: 'VC-WIN32' },
|
||||||
{name: 'arm64', config: 'ARM64', toolset: 'x64_arm64', arch_option: 'VC-WIN64-ARM' }
|
{name: 'arm64', os: 'windows-11-arm', config: 'ARM64', toolset: 'x64_arm64', arch_option: 'VC-WIN64-ARM' }
|
||||||
]
|
]
|
||||||
|
|
||||||
name: "Building for platform windows-${{matrix.architecture.name}}"
|
name: "Building for platform windows-${{matrix.architecture.name}}"
|
||||||
runs-on: "windows-2025"
|
runs-on: ${{ matrix.architecture.os }}
|
||||||
environment: ${{ inputs.environment }}
|
environment: ${{ inputs.environment }}
|
||||||
env:
|
env:
|
||||||
flexbison-branch: 'v2.5.25'
|
flexbison-branch: 'v2.5.25'
|
||||||
|
@ -86,7 +86,11 @@ jobs:
|
||||||
if: steps.cache-required-packages.outputs.cache-hit != 'true'
|
if: steps.cache-required-packages.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
$DownloadPath="$($env:USERPROFILE)\Downloads"
|
$DownloadPath="$($env:USERPROFILE)\Downloads"
|
||||||
|
if ("${{ matrix.architecture.config }}" -ieq "ARM64") {
|
||||||
|
Invoke-WebRequest "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-winarm64.zip" -OutFile "$DownloadPath\ninja-win.zip"
|
||||||
|
} else {
|
||||||
Invoke-WebRequest "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip" -OutFile "$DownloadPath\ninja-win.zip"
|
Invoke-WebRequest "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip" -OutFile "$DownloadPath\ninja-win.zip"
|
||||||
|
}
|
||||||
Expand-Archive -Path "$DownloadPath\ninja-win.zip" -DestinationPath "C:\Packages\ninja"
|
Expand-Archive -Path "$DownloadPath\ninja-win.zip" -DestinationPath "C:\Packages\ninja"
|
||||||
Invoke-WebRequest "https://download.qt.io/official_releases/jom/jom.zip" -OutFile "$DownloadPath\jom.zip"
|
Invoke-WebRequest "https://download.qt.io/official_releases/jom/jom.zip" -OutFile "$DownloadPath\jom.zip"
|
||||||
Expand-Archive -Path "$DownloadPath\jom.zip" -DestinationPath "C:\Packages\jom"
|
Expand-Archive -Path "$DownloadPath\jom.zip" -DestinationPath "C:\Packages\jom"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue