@@ -43,11 +43,13 @@ jobs:
4343 # so we delete everything that could mess up our builds
4444 run : rmdir /S /Q C:\Strawberry
4545
46- - name : Install Winget Dependencies from Zip
46+
47+ - name : Install Winget Dependencies from Zip (arm64)
48+ if : contains(matrix.arch, 'arm64')
4749 run : |
4850 $tempDir = Join-Path $env:TEMP "WingetDependencies"
4951 $zipFilePath = Join-Path $env:TEMP "DesktopAppInstaller_Dependencies.zip"
50- $arm64DepsDir = Join-Path $tempDir "arm64 " # Path to the arm64 folder inside the unzipped content
52+ $archDepsDir = Join-Path $tempDir "${{ matrix.arch }} " # Path to the arm64 or x64 folder inside the unzipped content
5153
5254 New-Item -ItemType Directory -Force -Path $tempDir | Out-Null
5355
@@ -67,15 +69,15 @@ jobs:
6769 exit 1
6870 }
6971
70- Write-Host "Installing dependencies from $arm64DepsDir ..."
72+ Write-Host "Installing dependencies from $archDepsDir ..."
7173 try {
7274 # Get all .appx files in the arm64 directory
73- $arm64AppxFiles = Get-ChildItem -Path $arm64DepsDir -Filter "*.appx" -Recurse | Select-Object -ExpandProperty FullName
75+ $appXFiles = Get-ChildItem -Path $archDepsDir -Filter "*.appx" -Recurse | Select-Object -ExpandProperty FullName
7476
75- if ($arm64AppxFiles .Count -eq 0) {
76- Write-Warning "No .appx files found in $arm64DepsDir . This might indicate an issue with the downloaded package or path."
77+ if ($appXFiles .Count -eq 0) {
78+ Write-Warning "No .appx files found in $archDepsDir . This might indicate an issue with the downloaded package or path."
7779 } else {
78- foreach ($appxFile in $arm64AppxFiles ) {
80+ foreach ($appxFile in $appXFiles ) {
7981 Write-Host "Installing $appxFile..."
8082 Add-AppxPackage -Path $appxFile
8183 }
@@ -86,21 +88,27 @@ jobs:
8688 }
8789 shell : pwsh
8890
89- - name : Install Winget
91+ - name : Install Winget (arm64)
92+ if : contains(matrix.arch, 'arm64')
9093 run : |
9194 Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v1.10.390/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile $env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
9295 Add-AppxPackage $env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
9396 shell : pwsh
9497
95- - name : Install Ninja
96- run : winget install --accept-source-agreements --accept-package-agreements Ninja-build.Ninja ${{ matrix.arch == 'arm64' && '--architecture arm64' || '' }}
98+ - name : Install Dependencies (arm64)
99+ if : contains(matrix.arch, 'arm64')
100+ run : |
101+ winget install --accept-source-agreements --accept-package-agreements Ninja-build.Ninja ${{ matrix.arch == 'arm64' && '--architecture arm64' || '' }}
102+ winget install --accept-source-agreements --accept-package-agreements NASM
103+ winget install --accept-source-agreements --accept-package-agreements LLVM.LLVM ${{ matrix.arch == 'arm64' && '--architecture arm64' || '' }}
97104
98- - name : Install NASM
99- run : winget install --accept-source-agreements --accept-package-agreements NASM
105+ - name : Install Windows packages (x64)
106+ if : contains(matrix.arch, 'x64')
107+ run : choco install ninja nasm
100108
101- - name : Upgrade LLVM
102- run : winget install --accept-source-agreements --accept-package-agreements LLVM.LLVM ${{ matrix.arch == 'arm64' && '--architecture arm64' || '' }}
103- shell : pwsh
109+ - name : Upgrade LLVM (x64)
110+ if : contains( matrix.arch, 'x64')
111+ run : choco upgrade llvm
104112
105113 - uses : ilammy/msvc-dev-cmd@v1
106114 with :
0 commit comments