@@ -58,16 +58,27 @@ jobs:
5858 - name : mingw-check-tidy
5959 os : ubuntu-20.04-4core-16gb
6060 env : {}
61- - name : x86_64-gnu-llvm-16
61+ - name : x86_64-gnu-llvm-17
6262 env :
6363 ENABLE_GCC_CODEGEN : " 1"
6464 os : ubuntu-20.04-16core-64gb
6565 - name : x86_64-gnu-tools
6666 os : ubuntu-20.04-16core-64gb
6767 env : {}
68+ defaults :
69+ run :
70+ shell : " ${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
6871 timeout-minutes : 600
6972 runs-on : " ${{ matrix.os }}"
7073 steps :
74+ - if : " contains(matrix.os, 'windows')"
75+ uses : msys2/setup-msys2@v2.22.0
76+ with :
77+ msystem : " ${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
78+ update : false
79+ release : true
80+ path-type : inherit
81+ install : " make dos2unix diffutils\n "
7182 - name : disable git crlf conversion
7283 run : git config --global core.autocrlf false
7384 - name : checkout the source code
@@ -145,7 +156,7 @@ jobs:
145156 run : src/ci/scripts/verify-stable-version-number.sh
146157 if : success() && !env.SKIP_JOB
147158 - name : run the build
148- run : src/ci/scripts/run-build-from-ci.sh
159+ run : src/ci/scripts/run-build-from-ci.sh 2>&1
149160 env :
150161 AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
151162 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
@@ -155,7 +166,7 @@ jobs:
155166 run : src/ci/scripts/create-doc-artifacts.sh
156167 if : success() && !env.SKIP_JOB
157168 - name : upload artifacts to github
158- uses : actions/upload-artifact@v3
169+ uses : actions/upload-artifact@v4
159170 with :
160171 name : " ${{ env.DOC_ARTIFACT_NAME }}"
161172 path : obj/artifacts/doc
@@ -224,6 +235,9 @@ jobs:
224235 - name : dist-loongarch64-linux
225236 os : ubuntu-20.04-8core-32gb
226237 env : {}
238+ - name : dist-ohos
239+ os : ubuntu-20.04-8core-32gb
240+ env : {}
227241 - name : dist-powerpc-linux
228242 os : ubuntu-20.04-8core-32gb
229243 env : {}
@@ -301,11 +315,11 @@ jobs:
301315 - name : x86_64-gnu-distcheck
302316 os : ubuntu-20.04-8core-32gb
303317 env : {}
304- - name : x86_64-gnu-llvm-17
318+ - name : x86_64-gnu-llvm-18
305319 env :
306320 RUST_BACKTRACE : 1
307321 os : ubuntu-20.04-8core-32gb
308- - name : x86_64-gnu-llvm-16
322+ - name : x86_64-gnu-llvm-17
309323 env :
310324 RUST_BACKTRACE : 1
311325 os : ubuntu-20.04-8core-32gb
@@ -319,10 +333,10 @@ jobs:
319333 - name : dist-x86_64-apple
320334 env :
321335 SCRIPT : " ./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin"
322- RUST_CONFIGURE_ARGS : " --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set rust.lto=thin"
336+ RUST_CONFIGURE_ARGS : " --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1 "
323337 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
324338 MACOSX_DEPLOYMENT_TARGET : 10.12
325- SELECT_XCODE : /Applications/Xcode_13.4 .1.app
339+ SELECT_XCODE : /Applications/Xcode_14.3 .1.app
326340 NO_LLVM_ASSERTIONS : 1
327341 NO_DEBUG_ASSERTIONS : 1
328342 NO_OVERFLOW_CHECKS : 1
@@ -335,7 +349,7 @@ jobs:
335349 RUST_CONFIGURE_ARGS : " --enable-sanitizers --enable-profiler --set rust.jemalloc"
336350 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
337351 MACOSX_DEPLOYMENT_TARGET : 10.12
338- SELECT_XCODE : /Applications/Xcode_13.4 .1.app
352+ SELECT_XCODE : /Applications/Xcode_14.3 .1.app
339353 NO_LLVM_ASSERTIONS : 1
340354 NO_DEBUG_ASSERTIONS : 1
341355 NO_OVERFLOW_CHECKS : 1
@@ -347,6 +361,7 @@ jobs:
347361 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
348362 MACOSX_DEPLOYMENT_TARGET : 10.12
349363 MACOSX_STD_DEPLOYMENT_TARGET : 10.12
364+ SELECT_XCODE : /Applications/Xcode_14.3.1.app
350365 NO_LLVM_ASSERTIONS : 1
351366 NO_DEBUG_ASSERTIONS : 1
352367 NO_OVERFLOW_CHECKS : 1
@@ -358,6 +373,7 @@ jobs:
358373 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
359374 MACOSX_DEPLOYMENT_TARGET : 10.12
360375 MACOSX_STD_DEPLOYMENT_TARGET : 10.12
376+ SELECT_XCODE : /Applications/Xcode_14.3.1.app
361377 NO_LLVM_ASSERTIONS : 1
362378 NO_DEBUG_ASSERTIONS : 1
363379 NO_OVERFLOW_CHECKS : 1
@@ -367,7 +383,7 @@ jobs:
367383 SCRIPT : " ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
368384 RUST_CONFIGURE_ARGS : " --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
369385 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
370- SELECT_XCODE : /Applications/Xcode_13.4 .1.app
386+ SELECT_XCODE : /Applications/Xcode_14.3 .1.app
371387 USE_XCODE_CLANG : 1
372388 MACOSX_DEPLOYMENT_TARGET : 11.0
373389 MACOSX_STD_DEPLOYMENT_TARGET : 11.0
@@ -381,7 +397,7 @@ jobs:
381397 SCRIPT : " ./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
382398 RUST_CONFIGURE_ARGS : " --enable-sanitizers --enable-profiler --set rust.jemalloc"
383399 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
384- SELECT_XCODE : /Applications/Xcode_13.4 .1.app
400+ SELECT_XCODE : /Applications/Xcode_14.3 .1.app
385401 USE_XCODE_CLANG : 1
386402 MACOSX_DEPLOYMENT_TARGET : 11.0
387403 MACOSX_STD_DEPLOYMENT_TARGET : 11.0
@@ -422,7 +438,7 @@ jobs:
422438 os : windows-2019-8core-32gb
423439 - name : dist-x86_64-msvc
424440 env :
425- RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler"
441+ RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler --set rust.codegen-units=1 "
426442 SCRIPT : python x.py build --set rust.debug=true opt-dist && PGO_HOST=x86_64-pc-windows-msvc ./build/x86_64-pc-windows-msvc/stage0-tools-bin/opt-dist windows-ci -- python x.py dist bootstrap --include-default-paths
427443 DIST_REQUIRE_ALL_TOOLS : 1
428444 os : windows-2019-8core-32gb
@@ -459,9 +475,20 @@ jobs:
459475 RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-msvc --enable-extended --enable-profiler"
460476 SCRIPT : python x.py dist bootstrap --include-default-paths
461477 os : windows-2019-8core-32gb
478+ defaults :
479+ run :
480+ shell : " ${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
462481 timeout-minutes : 600
463482 runs-on : " ${{ matrix.os }}"
464483 steps :
484+ - if : " contains(matrix.os, 'windows')"
485+ uses : msys2/setup-msys2@v2.22.0
486+ with :
487+ msystem : " ${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
488+ update : false
489+ release : true
490+ path-type : inherit
491+ install : " make dos2unix diffutils\n "
465492 - name : disable git crlf conversion
466493 run : git config --global core.autocrlf false
467494 - name : checkout the source code
@@ -539,7 +566,7 @@ jobs:
539566 run : src/ci/scripts/verify-stable-version-number.sh
540567 if : success() && !env.SKIP_JOB
541568 - name : run the build
542- run : src/ci/scripts/run-build-from-ci.sh
569+ run : src/ci/scripts/run-build-from-ci.sh 2>&1
543570 env :
544571 AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
545572 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
@@ -549,7 +576,7 @@ jobs:
549576 run : src/ci/scripts/create-doc-artifacts.sh
550577 if : success() && !env.SKIP_JOB
551578 - name : upload artifacts to github
552- uses : actions/upload-artifact@v3
579+ uses : actions/upload-artifact@v4
553580 with :
554581 name : " ${{ env.DOC_ARTIFACT_NAME }}"
555582 path : obj/artifacts/doc
@@ -587,9 +614,20 @@ jobs:
587614 env :
588615 CODEGEN_BACKENDS : " llvm,cranelift"
589616 os : ubuntu-20.04-16core-64gb
617+ defaults :
618+ run :
619+ shell : " ${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
590620 timeout-minutes : 600
591621 runs-on : " ${{ matrix.os }}"
592622 steps :
623+ - if : " contains(matrix.os, 'windows')"
624+ uses : msys2/setup-msys2@v2.22.0
625+ with :
626+ msystem : " ${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}"
627+ update : false
628+ release : true
629+ path-type : inherit
630+ install : " make dos2unix diffutils\n "
593631 - name : disable git crlf conversion
594632 run : git config --global core.autocrlf false
595633 - name : checkout the source code
@@ -667,7 +705,7 @@ jobs:
667705 run : src/ci/scripts/verify-stable-version-number.sh
668706 if : success() && !env.SKIP_JOB
669707 - name : run the build
670- run : src/ci/scripts/run-build-from-ci.sh
708+ run : src/ci/scripts/run-build-from-ci.sh 2>&1
671709 env :
672710 AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
673711 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
@@ -677,7 +715,7 @@ jobs:
677715 run : src/ci/scripts/create-doc-artifacts.sh
678716 if : success() && !env.SKIP_JOB
679717 - name : upload artifacts to github
680- uses : actions/upload-artifact@v3
718+ uses : actions/upload-artifact@v4
681719 with :
682720 name : " ${{ env.DOC_ARTIFACT_NAME }}"
683721 path : obj/artifacts/doc
0 commit comments