|
72 | 72 | with: |
73 | 73 | python-version: '3.13' |
74 | 74 | - name: Install libxml2 |
| 75 | + if:false |
75 | 76 | shell: bash |
76 | 77 | env: |
77 | 78 | VCPKG_BUILD_TYPE: release |
|
89 | 90 | find /c/vcpkg -iname 'libxml*.lib' |
90 | 91 | |
91 | 92 | - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 93 | + if: false |
92 | 94 | with: |
93 | 95 | name: libxml2 |
94 | 96 | path: | |
@@ -251,7 +253,7 @@ jobs: |
251 | 253 | echo "build-prefix=$build_prefix" >> $GITHUB_OUTPUT |
252 | 254 |
|
253 | 255 | - name: Install libxml2 for Windows |
254 | | - if: runner.os == 'Windows' |
| 256 | + if: runner.os == 'Windows' && false |
255 | 257 | run: | |
256 | 258 | # Build libxml2 for windows |
257 | 259 | curl -O https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.12/libxml2-v2.9.12.tar.gz |
@@ -293,11 +295,25 @@ jobs: |
293 | 295 | #ls -l /c/vcpkg/packages/libxml2_x64-windows-static/include/libxml2/libxml |
294 | 296 | # There were some issues on the ARM64 MacOS runners with trying to build x86 object, |
295 | 297 | # so we need to set some extra cmake flags to disable this. |
296 | | - cmake -G Ninja -S llvm -B ${{ steps.setup-stage.outputs.build-prefix }}/build \ |
| 298 | + cmake --debug-trycompile -G Ninja -S llvm -B ${{ steps.setup-stage.outputs.build-prefix }}/build \ |
297 | 299 | ${{ needs.prepare.outputs.target-cmake-flags }} \ |
| 300 | + -DLLVM_ENABLE_LIBXML2=FORCE_ON \ |
| 301 | + -DLIBXML2_LIBRARIES=/c/vcpkg/packages/libxml2_x64-windows-static/lib/libxml2s.lib \ |
| 302 | + -DLIBXML2_INCLUDE_DIR=/c/vcpkg/packages/libxml2_x64-windows-static/include/libxml2 \ |
| 303 | + -DLIBXML2_DEFINITIONS=-DLIBXML_STATIC \ |
298 | 304 | -C clang/cmake/caches/Release.cmake \ |
299 | 305 | -DBOOTSTRAP_BOOTSTRAP_CPACK_PACKAGE_FILE_NAME="${{ needs.prepare.outputs.release-binary-basename }}" |
300 | 306 |
|
| 307 | + - name: Save build |
| 308 | + if: failure() && runner.os == 'Windows' |
| 309 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 310 | + with: |
| 311 | + name: build |
| 312 | + # Due to path differences on Windows when running in bash vs running on node, |
| 313 | + # we need to search for files in the current workspace. |
| 314 | + path: | |
| 315 | + build |
| 316 | +
|
301 | 317 | - name: Build |
302 | 318 | shell: bash |
303 | 319 | run: | |
|
0 commit comments