@@ -225,41 +225,44 @@ jobs:
225
225
226
226
windows :
227
227
runs-on : windows-11-arm
228
- strategy :
229
- fail-fast : false
230
- matrix :
231
- include :
232
- - { config: mingw-dll, mingw: true }
233
228
steps :
234
229
- uses : actions/checkout@v4
235
230
- name : Install dependencies
236
231
run : |
237
232
choco install -y ninja
238
233
pip install psutil
239
- - name : Install a current LLVM
240
- if : ${{ matrix.mingw != true }}
241
- run : |
242
- choco install -y llvm --version=19.1.7 --allow-downgrade
243
234
- name : Install llvm-mingw
244
- if : ${{ matrix.mingw == true }}
245
235
run : |
246
- curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250114 /llvm-mingw-20250114 -ucrt-aarch64.zip
236
+ curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250417 /llvm-mingw-20250417 -ucrt-aarch64.zip
247
237
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
248
238
del llvm-mingw*.zip
249
239
mv llvm-mingw* c:\llvm-mingw
250
240
echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
251
- - name : Simulate a from-scratch build of llvm-mingw
252
- if : ${{ matrix.config == 'mingw-incomplete-sysroot' }}
253
- run : |
254
- rm -r c:\llvm-mingw\include\c++
255
- rm -r c:\llvm-mingw\*-w64-mingw32\lib\libc++*
256
- rm -r c:\llvm-mingw\*-w64-mingw32\lib\libunwind*
241
+ echo "c:\llvm-mingw\python\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
242
+ echo "PYTHON_EXE=c:/llvm-mingw/python/bin/python3.exe" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
257
243
- name : Add Git Bash to the path
258
244
run : |
259
245
echo "c:\Program Files\Git\usr\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
260
- - name : Set up the MSVC dev environment
261
- if : ${{ matrix.mingw != true }}
262
- uses : ilammy/msvc-dev-cmd@v1
263
246
- name : Build and test
264
247
run : |
265
- bash libcxx/utils/ci/run-buildbot ${{ matrix.config }}
248
+ mkdir build
249
+ cd build
250
+ cmake ../runtimes `
251
+ -G Ninja `
252
+ -DCMAKE_BUILD_TYPE=Release `
253
+ -DPython3_EXECUTABLE="$Env:PYTHON_EXE" `
254
+ -DLIBCXX_ENABLE_WERROR=YES `
255
+ -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" `
256
+ -DLIBCXX_CXX_ABI=libcxxabi `
257
+ -DCMAKE_C_COMPILER=clang `
258
+ -DCMAKE_CXX_COMPILER=clang++ `
259
+ -DLIBCXXABI_ENABLE_SHARED=NO `
260
+ -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES `
261
+ -DLIBCXX_USE_COMPILER_RT=YES `
262
+ -DLIBCXXABI_USE_COMPILER_RT=YES `
263
+ -DLIBUNWIND_USE_COMPILER_RT=YES `
264
+ -DLIBCXXABI_USE_LLVM_UNWINDER=YES `
265
+ -DLIBCXX_EXTRA_SITE_DEFINES="__USE_MINGW_ANSI_STDIO=1" `
266
+ -DLLVM_LIT_ARGS="-v --time-tests"
267
+ ninja
268
+ ninja check-cxx
0 commit comments