|
| 1 | +# For PRs: check out the current *merge* ref, i.e., merge with target branch |
| 2 | +clone_steps_template: &CLONE_STEPS_TEMPLATE |
| 3 | + merge_with_target_branch_script: | |
| 4 | + if [ -n "${CIRRUS_PR:-}" ]; then |
| 5 | + git fetch origin "+refs/pull/$CIRRUS_PR/merge:" |
| 6 | + git checkout -f FETCH_HEAD |
| 7 | + fi |
| 8 | +
|
1 | 9 | # Installs lit, clones the git submodules, builds LDC and the test |
2 | 10 | # runners and runs the tests. |
3 | 11 | # Requires env variables CI_ARCH, CI_OS, EXTRA_CMAKE_FLAGS and PARALLELISM. |
@@ -76,10 +84,7 @@ packaging_steps_template: &PACKAGING_STEPS_TEMPLATE |
76 | 84 | # Run dynamic-compile integration test |
77 | 85 | run_dynamic_compile_integration_test_script: | |
78 | 86 | cd $CIRRUS_WORKING_DIR/.. |
79 | | - # FreeBSD's LLVM 15 is too old (need LLVM 18+ for dynamic-compile) |
80 | | - if [[ "$CI_OS" != "freebsd" ]]; then |
81 | | - installed/bin/ldc2 -enable-dynamic-compile -run $CIRRUS_WORKING_DIR/tests/dynamiccompile/array.d |
82 | | - fi |
| 87 | + installed/bin/ldc2 -enable-dynamic-compile -run $CIRRUS_WORKING_DIR/tests/dynamiccompile/array.d |
83 | 88 | # Run ImportC integration test |
84 | 89 | run_importC_integration_test_script: | |
85 | 90 | cd $CIRRUS_WORKING_DIR/.. |
@@ -193,6 +198,7 @@ task: |
193 | 198 | # for gdmd: |
194 | 199 | LANG: C.UTF-8 |
195 | 200 | << : *INSTALL_UBUNTU_PREREQUISITES_TEMPLATE |
| 201 | + << : *CLONE_STEPS_TEMPLATE |
196 | 202 | # to get the LTO lit-tests working: |
197 | 203 | make_lld_the_default_linker_script: | |
198 | 204 | ln -sf ld.lld /usr/bin/ld |
@@ -220,17 +226,18 @@ task: |
220 | 226 | -DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto" |
221 | 227 | -DEXTRA_CXXFLAGS=-flto=full |
222 | 228 | PARALLELISM: 4 |
223 | | - CC: clang15 |
224 | | - CXX: clang++15 |
| 229 | + CC: clang19 |
| 230 | + CXX: clang++19 |
225 | 231 | install_prerequisites_script: | |
226 | 232 | cd $CIRRUS_WORKING_DIR/.. |
227 | 233 | sysctl -n hw.ncpu |
228 | | - pkg install -y git cmake ninja gmake llvm15 bash gtar 7-zip ldc |
| 234 | + pkg install -y git cmake ninja gmake llvm19 bash gtar 7-zip ldc |
229 | 235 | python3 --version |
230 | 236 | python3 -m ensurepip |
231 | 237 | # set up default llvm-config |
232 | 238 | ls -l /usr/local/bin/llvm-config* |
233 | | - ln -sf llvm-config15 /usr/local/bin/llvm-config |
| 239 | + ln -sf llvm-config19 /usr/local/bin/llvm-config |
| 240 | + << : *CLONE_STEPS_TEMPLATE |
234 | 241 | clone_submodules_early_script: | |
235 | 242 | cd $CIRRUS_WORKING_DIR |
236 | 243 | git submodule update --init --depth $CIRRUS_CLONE_DEPTH |
|
0 commit comments