Skip to content

Commit d5bd91e

Browse files
authored
Create pkg-config.yml
1 parent 58ce7b7 commit d5bd91e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/pkg-config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test pkgconf on Windows ARM64
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test-pkgconf:
8+
name: Install and check pkgconf
9+
runs-on: windows-11-arm
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Install pkgconf via vcpkg
16+
shell: pwsh
17+
run: |
18+
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" arm64
19+
20+
$env:VCPKG_ROOT = "C:\vcpkg"
21+
22+
if (-not (Test-Path $env:VCPKG_ROOT)) {
23+
git clone https://github.com/microsoft/vcpkg.git $env:VCPKG_ROOT
24+
}
25+
26+
Set-Location $env:VCPKG_ROOT
27+
28+
if (-not (Test-Path ".\vcpkg.exe")) {
29+
./bootstrap-vcpkg.bat -disableMetrics
30+
}
31+
32+
./vcpkg install pkgconf:arm64-windows
33+
34+
$pkgconfPath = "$env:VCPKG_ROOT\installed\arm64-windows\tools\pkgconf"
35+
$env:PATH = "$pkgconfPath;$env:PATH"
36+
37+
Copy-Item "$pkgconfPath\pkgconf.exe" "$pkgconfPath\pkg-config.exe"
38+
39+
# Save the updated PATH for next steps
40+
echo "$pkgconfPath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
41+
42+
- name: Check pkg-config version
43+
run: pkg-config --version

0 commit comments

Comments
 (0)