The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Test the build on macOS with Apple tools only

+32 -25
+32 -25
tools/ci/inria/main
··· 290 290 confoptions="--enable-native-toplevel $confoptions";; 291 291 esac 292 292 293 - eval ./configure "$CCOMP" $build $host --prefix='$instdir' $confoptions 293 + main_build() { 294 + eval ./configure "$CCOMP" $build $host --prefix='$instdir' $confoptions 294 295 295 - grep -q '^NATIVE_COMPILER=false' Makefile.config && make_native=false 296 + grep -q '^NATIVE_COMPILER=false' Makefile.config && make_native=false 297 + 298 + if test "$flambda" = "true" && test "$make_native" = "false"; then 299 + echo "No need to test flambda in a bytecode-only system; skipping the test." 300 + exit 0 301 + fi 296 302 297 - if test "$flambda" = "true" && test "$make_native" = "false"; then 298 - echo "No need to test flambda in a bytecode-only system; skipping the test." 299 - exit 0 300 - fi 303 + if $bootstrap; then 304 + $make $jobs --warn-undefined-variables core 305 + $make $jobs --warn-undefined-variables bootstrap 306 + if $make_native; then 307 + $make $jobs --warn-undefined-variables opt.opt 308 + fi 309 + else 310 + $make $jobs --warn-undefined-variables 311 + fi 301 312 302 - if $bootstrap; then 303 - $make $jobs --warn-undefined-variables core 304 - $make $jobs --warn-undefined-variables bootstrap 305 - if $make_native; then 306 - $make $jobs --warn-undefined-variables opt.opt 313 + if $make_native && $check_make_alldepend; then 314 + $make --warn-undefined-variables alldepend 307 315 fi 308 - else 309 - $make $jobs --warn-undefined-variables 310 - fi 311 316 317 + $make --warn-undefined-variables install 318 + case $confoptions in 319 + *--disable-unix-lib*) ;; # test-in-prefix needs Unix lib 320 + *) 321 + $make -f Makefile.test -C testsuite/in_prefix test-in-prefix 322 + ;; 323 + esac 324 + rm -rf "$instdir" 325 + } 312 326 313 - if $make_native && $check_make_alldepend; then 314 - $make --warn-undefined-variables alldepend 315 - fi 327 + # PATH, but without any homebrew additions (tests vanilla macOS in the build, 328 + # while still allowing full utilities later in the testsuite) 329 + CLEAN_PATH=$(echo "$PATH" | tr ':' '\n' | grep -vF '/homebrew/' | paste -sd: -) 316 330 317 - $make --warn-undefined-variables install 318 - case $confoptions in 319 - *--disable-unix-lib*) ;; # test-in-prefix needs Unix lib 320 - *) 321 - $make -f Makefile.test -C testsuite/in_prefix test-in-prefix 322 - ;; 323 - esac 324 - rm -rf "$instdir" 331 + PATH="$CLEAN_PATH" main_build 325 332 326 333 cd testsuite 327 334 if test -n "$jobs" && test -x /usr/bin/parallel