@@ -43,11 +43,13 @@ jobs:
43
43
# so we delete everything that could mess up our builds
44
44
run : rmdir /S /Q C:\Strawberry
45
45
46
- - name : Install Winget Dependencies from Zip
46
+
47
+ - name : Install Winget Dependencies from Zip (arm64)
48
+ if : contains(matrix.arch, 'arm64')
47
49
run : |
48
50
$tempDir = Join-Path $env:TEMP "WingetDependencies"
49
51
$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
51
53
52
54
New-Item -ItemType Directory -Force -Path $tempDir | Out-Null
53
55
@@ -67,15 +69,15 @@ jobs:
67
69
exit 1
68
70
}
69
71
70
- Write-Host "Installing dependencies from $arm64DepsDir ..."
72
+ Write-Host "Installing dependencies from $archDepsDir ..."
71
73
try {
72
74
# 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
74
76
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."
77
79
} else {
78
- foreach ($appxFile in $arm64AppxFiles ) {
80
+ foreach ($appxFile in $appXFiles ) {
79
81
Write-Host "Installing $appxFile..."
80
82
Add-AppxPackage -Path $appxFile
81
83
}
@@ -86,21 +88,27 @@ jobs:
86
88
}
87
89
shell : pwsh
88
90
89
- - name : Install Winget
91
+ - name : Install Winget (arm64)
92
+ if : contains(matrix.arch, 'arm64')
90
93
run : |
91
94
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
92
95
Add-AppxPackage $env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
93
96
shell : pwsh
94
97
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' || '' }}
97
104
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
100
108
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
104
112
105
113
- uses : ilammy/msvc-dev-cmd@v1
106
114
with :
0 commit comments