Skip to content

Commit 982ad2f

Browse files
authored
Add llvm-mingw installation for ARM64 cross-compilation
Added llvm-mingw installation step for ARM64 cross-compilation on Windows.
1 parent c063145 commit 982ad2f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ jobs:
2929
shell: bash
3030
run: |
3131
C:\\msys64\\usr\\bin\\bash.exe -c 'export PATH="/usr/bin:/mingw64/bin:$PATH"; pacman -S --needed --noconfirm mingw-w64-x86_64-toolchain mingw-w64-x86_64-mpg123 mingw-w64-x86_64-gtk2 mingw-w64-x86_64-libogg mingw-w64-x86_64-libvorbis mingw-w64-x86_64-lame mingw-w64-x86_64-pkg-config nasm yasm make base-devel autoconf automake libtool'
32+
33+
- name: Install llvm-mingw for ARM64 cross-compilation
34+
if: runner.os == 'Windows'
35+
shell: pwsh
36+
run: |
37+
$llvmMingwVersion = "20250114"
38+
$url = "https://github.com/mstorsjo/llvm-mingw/releases/download/$llvmMingwVersion/llvm-mingw-$llvmMingwVersion-ucrt-x86_64.zip"
39+
Invoke-WebRequest -Uri $url -OutFile "$env:TEMP\llvm-mingw.zip"
40+
Expand-Archive -Path "$env:TEMP\llvm-mingw.zip" -DestinationPath "C:\llvm-mingw-extract"
41+
Move-Item -Path "C:\llvm-mingw-extract\llvm-mingw-$llvmMingwVersion-ucrt-x86_64\*" -Destination "C:\llvm-mingw" -Force
42+
Write-Host "llvm-mingw installed to C:\llvm-mingw"
43+
3244
- name: Clone repository
3345
uses: actions/checkout@v4
3446
with:
@@ -78,3 +90,4 @@ jobs:
7890
removeArtifacts: true
7991
artifacts: "artifacts/**/*.nupkg"
8092
token: ${{ secrets.GITHUB_TOKEN }}
93+

0 commit comments

Comments
 (0)