Skip to content

Commit ae0f9c4

Browse files
committed
chore: Enable WinGet Install Phase on x64 CI
1 parent 4892e60 commit ae0f9c4

File tree

2 files changed

+43
-15
lines changed

2 files changed

+43
-15
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

phases/30-gnustep-base.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,32 @@ export TAG=
1212
../scripts/common.bat prepare_project
1313
source ../scripts/bash-env.sh
1414

15+
echo "Pkg Config Path: $PKG_CONFIG_PATH"
16+
echo "Unix Install Prefix: $UNIX_INSTALL_PREFIX"
17+
echo "Registered packages"
18+
pkg-config --list-all
19+
echo "Package Config Dir"
20+
ls /c/GNUstep/x64/Debug/lib/pkgconfig/
21+
echo "Try to hard-code PKG_CONFIG_PATH"
22+
export PKG_CONFIG_PATH="$UNIX_INSTALL_PREFIX/lib/pkgconfig/"
23+
pkg-config --list-all
24+
25+
echo "pkg config version"
26+
pkg-config --version
27+
1528
cd "$SRCROOT/$PROJECT"
1629

1730
echo
1831
echo "### Loading GNUstep environment"
1932
. "$UNIX_INSTALL_PREFIX/share/GNUstep/Makefiles/GNUstep.sh"
2033

34+
echo "pkg config after loading GNUstep environemtn"
35+
pkg-config --list-all
36+
37+
echo "Patching again..."
38+
export PKG_CONFIG_PATH="$UNIX_INSTALL_PREFIX/lib/pkgconfig/"
39+
pkg-config --list-all
40+
2141
# Make sure that we only include configuration from the current install prefix
2242
export PKG_CONFIG_PATH="$UNIX_INSTALL_PREFIX/lib/pkgconfig"
2343

0 commit comments

Comments
 (0)