@@ -452,6 +452,151 @@ jobs:
452452 run : source .github/setenv.sh && c4_run_test shared32
453453 - name : shared32-pack
454454 run : source .github/setenv.sh && c4_package shared32
455+ nocallbacks :
456+ if : always()
457+ continue-on-error : false
458+ name : nocallbacks/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}
459+ runs-on : ubuntu-24.04
460+ container : ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest
461+ needs : canary
462+ strategy :
463+ fail-fast : false
464+ matrix :
465+ include :
466+ - std : 11
467+ cxx : g++-13
468+ bt : Debug
469+ bitlinks : shared64 static32
470+ img : ' 22.04'
471+ - std : 11
472+ cxx : g++-13
473+ bt : Release
474+ bitlinks : shared64 static32
475+ img : ' 22.04'
476+ - std : 20
477+ cxx : g++-13
478+ bt : Debug
479+ bitlinks : shared64 static32
480+ img : ' 22.04'
481+ - std : 20
482+ cxx : g++-13
483+ bt : Release
484+ bitlinks : shared64 static32
485+ img : ' 22.04'
486+ - std : 11
487+ cxx : g++-5
488+ bt : Debug
489+ bitlinks : shared64 static32
490+ img : ' 18.04'
491+ - std : 11
492+ cxx : g++-5
493+ bt : Release
494+ bitlinks : shared64 static32
495+ img : ' 18.04'
496+ - std : 11
497+ cxx : g++-4.8
498+ bt : Debug
499+ bitlinks : shared64 static32
500+ img : ' 18.04'
501+ - std : 11
502+ cxx : g++-4.8
503+ bt : Release
504+ bitlinks : shared64 static32
505+ img : ' 18.04'
506+ env :
507+ STD : ${{matrix.std}}
508+ CXX_ : ${{matrix.cxx}}
509+ BT : ${{matrix.bt}}
510+ BITLINKS : ${{matrix.bitlinks}}
511+ VG : ${{matrix.vg}}
512+ SAN : ${{matrix.san}}
513+ LINT : ${{matrix.lint}}
514+ OS : ${{matrix.os}}
515+ CMAKE_FLAGS : -DRYML_DEFAULT_CALLBACKS=OFF
516+ steps :
517+ - name : checkout (manually)
518+ run : |
519+ set -xeo pipefail
520+ env | sort
521+ echo GITHUB_SERVER_URL=$GITHUB_SERVER_URL
522+ echo GITHUB_REPOSITORY=$GITHUB_REPOSITORY
523+ echo GITHUB_REF=$GITHUB_REF
524+ echo GITHUB_REF_NAME=$GITHUB_REF_NAME
525+ echo GITHUB_HEAD_REF=$GITHUB_HEAD_REF
526+ repo=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY
527+ # check the branch
528+ # https://stackoverflow.com/questions/58033366
529+ branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
530+ echo branch=$branch
531+ # does the branch exist in the repo?
532+ if [ -z "$(git ls-remote $repo | grep $branch)" ] ; then
533+ echo "branch $branch does not exist on $repo"
534+ # refs/pull/485/merge -> pull/485/head
535+ branch=`echo ${GITHUB_REF#refs/} | sed -e 's:merge:head:g'`
536+ echo "... falling back to $branch"
537+ # does the fallback exist?
538+ if [ -z "(git ls-remote $repo | grep $branch)" ] ; then
539+ echo "branch $branch does not exist on $repo"
540+ exit 1
541+ else
542+ echo "branch $branch exists on $repo"
543+ localbranch=$(echo $branch | sed -e 's@[/:]@_@g')
544+ branch=$branch:$localbranch
545+ echo "naming locally as $branch"
546+ fi
547+ fi
548+ # finally, create the local repo
549+ git init -q .
550+ # needed for running in the docker image.
551+ # see https://github.com/actions/checkout/issues/1169
552+ git config --system --add safe.directory '*'
553+ # finally, do it!
554+ git remote add origin $repo
555+ git fetch origin $branch
556+ git reset --hard FETCH_HEAD
557+ git submodule update --init --recursive
558+ # show the log
559+ git log --graph --date=relative --date-order --color=always \
560+ --pretty='%C(yellow)%h %C(cyan)%cd %Cblue%aN%C(auto)%d %Creset%s' \
561+ | head -30 \
562+ || echo -n
563+ # show the last commit
564+ git log --name-status HEAD^..HEAD
565+ - run : c4core-install ${{matrix.cxx}}
566+ - name : show info
567+ run : source .github/setenv.sh && c4_show_info
568+ - name : shared64-configure---------------------------------------------------
569+ run : source .github/setenv.sh && c4_cfg_test shared64
570+ - name : shared64-build
571+ run : source .github/setenv.sh && c4_build_test shared64
572+ - name : shared64-run
573+ run : source .github/setenv.sh && c4_run_test shared64
574+ - name : shared64-pack
575+ run : source .github/setenv.sh && c4_package shared64
576+ - name : static64-configure---------------------------------------------------
577+ run : source .github/setenv.sh && c4_cfg_test static64
578+ - name : static64-build
579+ run : source .github/setenv.sh && c4_build_test static64
580+ - name : static64-run
581+ run : source .github/setenv.sh && c4_run_test static64
582+ - name : static64-pack
583+ run : source .github/setenv.sh && c4_package static64
584+ - name : static32-configure---------------------------------------------------
585+ run : source .github/setenv.sh && c4_cfg_test static32
586+ - name : static32-build
587+ run : source .github/setenv.sh && c4_build_test static32
588+ - name : static32-run
589+ run : source .github/setenv.sh && c4_run_test static32
590+ - name : static32-pack
591+ run : source .github/setenv.sh && c4_package static32
592+ - name : shared32-configure---------------------------------------------------
593+ run : source .github/setenv.sh && c4_cfg_test shared32
594+ - name : shared32-build
595+ run : source .github/setenv.sh && c4_build_test shared32
596+ - name : shared32-run
597+ run : source .github/setenv.sh && c4_run_test shared32
598+ - name : shared32-pack
599+ run : source .github/setenv.sh && c4_package shared32
455600 dbg :
456601 if : always()
457602 continue-on-error : false
0 commit comments