File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed
Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 5959 run : |
6060 set -eux
6161 cd ..
62+ suffix='win64'
63+ if [[ '${{ inputs.arch }}' == arm64 ]]; then
64+ suffix='woa64'
65+ fi
6266 curl -fL --retry 3 --max-time 300 -o clang.exe \
63- https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.3/LLVM-20.1.3-win64 .exe
67+ https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.3/LLVM-20.1.3-$suffix .exe
6468 ./clang.exe //S # double-slash for bash
6569 rm clang.exe
6670 # C:\Program Files\LLVM\bin should already be in PATH
@@ -163,7 +167,9 @@ runs:
163167 cd ..
164168
165169 url='https://curl.se/windows/latest.cgi?p=win64-mingw.zip'
166- if [[ '${{ inputs.arch }}' == x86 ]]; then
170+ if [[ '${{ inputs.arch }}' == arm64 ]]; then
171+ url='https://curl.se/windows/latest.cgi?p=win64a-mingw.zip'
172+ elif [[ '${{ inputs.arch }}' == x86 ]]; then
167173 url='https://curl.se/windows/latest.cgi?p=win32-mingw.zip'
168174 fi
169175
Original file line number Diff line number Diff line change 6666
6767 cp libcurl/ldc2/* installed/bin/
6868
69+ if [[ '${{ inputs.arch }}' == arm64 ]]; then
70+ echo "No MinGW-based libraries available for arm64 yet."
71+ exit 0
72+ fi
73+
6974 curl -fL --retry 3 --max-time 60 -o mingw-w64-libs.7z \
7075 https://github.com/ldc-developers/mingw-w64-libs/releases/download/v8.0.0/mingw-w64-libs-v8.0.0.7z
7176 mkdir mingw-w64-libs
Original file line number Diff line number Diff line change 6767 set PATH=%CD%\ldc2-multilib\lib32;%PATH%
6868 ldc2-multilib\bin\ldc2 -link-defaultlib-shared -m32 -run hello.d || exit /b
6969
70+ # TODO
7071 # preliminary arm64 cross-compilation support
7172 - name : Install ninja v1.12.1
7273 uses : Ahajha/gha-setup-ninja@69595b0cf872acdad8ce599142fbdc88724b9a2b
Original file line number Diff line number Diff line change @@ -101,6 +101,16 @@ jobs:
101101 -DEXTRA_CXXFLAGS=-flto=full
102102 with_pgo : true
103103
104+ - job_name : Windows arm64
105+ os : windows-11-arm
106+ arch : arm64
107+ base_cmake_flags : >-
108+ -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
109+ # extra_cmake_flags: >-
110+ # "-DD_COMPILER_FLAGS=-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto"
111+ # -DEXTRA_CXXFLAGS=-flto=full
112+ # with_pgo: true
113+
104114 - job_name : Windows x86
105115 os : windows-2025
106116 arch : x86
You can’t perform that action at this time.
0 commit comments