@@ -462,6 +462,81 @@ jobs:
462462 name : Building/fetching current CI target
463463 run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
464464 --argstr job "hierarchy-builder"
465+ interval :
466+ needs :
467+ - coq
468+ - coquelicot
469+ - mathcomp-ssreflect
470+ - mathcomp-fingroup
471+ runs-on : ubuntu-latest
472+ steps :
473+ - name : Determine which commit to initially checkout
474+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{\
475+ \ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha\
476+ \ }}\" >> $GITHUB_ENV\n fi\n "
477+ - name : Git checkout
478+ uses : actions/checkout@v3
479+ with :
480+ fetch-depth : 0
481+ ref : ${{ env.target_commit }}
482+ - name : Determine which commit to test
483+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{\
484+ \ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{\
485+ \ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\
486+ \ | cut -f1)\n mergeable=$(git merge --no-commit --no-ff ${{ github.event.pull_request.base.sha\
487+ \ }} > /dev/null 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n \
488+ \ if [ -z \" $merge_commit\" -o \" x$mergeable\" != \" x0\" ]; then\n echo\
489+ \ \" tested_commit=${{ github.event.pull_request.head.sha }}\" >> $GITHUB_ENV\n \
490+ \ else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n fi\n fi\n "
491+ - name : Git checkout
492+ uses : actions/checkout@v3
493+ with :
494+ fetch-depth : 0
495+ ref : ${{ env.tested_commit }}
496+ - name : Cachix install
497+ uses : cachix/install-nix-action@v20
498+ with :
499+ nix_path : nixpkgs=channel:nixpkgs-unstable
500+ - name : Cachix setup coq-elpi
501+ uses : cachix/cachix-action@v12
502+ with :
503+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
504+ extraPullNames : coq, coq-community, math-comp
505+ name : coq-elpi
506+ - id : stepCheck
507+ name : Checking presence of CI target interval
508+ run : " nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\
509+ \ bundle \" coq-8.18\" --argstr job \" interval\" \\\n --dry-run 2>&1 > /dev/null)\n \
510+ echo $nb_dry_run\n echo status=$(echo $nb_dry_run | grep \" built:\" | sed \" \
511+ s/.*/built/\" ) >> $GITHUB_OUTPUT\n "
512+ - if : steps.stepCheck.outputs.status == 'built'
513+ name : ' Building/fetching previous CI target: coq'
514+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
515+ --argstr job "coq"
516+ - if : steps.stepCheck.outputs.status == 'built'
517+ name : ' Building/fetching previous CI target: bignums'
518+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
519+ --argstr job "bignums"
520+ - if : steps.stepCheck.outputs.status == 'built'
521+ name : ' Building/fetching previous CI target: coquelicot'
522+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
523+ --argstr job "coquelicot"
524+ - if : steps.stepCheck.outputs.status == 'built'
525+ name : ' Building/fetching previous CI target: flocq'
526+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
527+ --argstr job "flocq"
528+ - if : steps.stepCheck.outputs.status == 'built'
529+ name : ' Building/fetching previous CI target: mathcomp-ssreflect'
530+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
531+ --argstr job "mathcomp-ssreflect"
532+ - if : steps.stepCheck.outputs.status == 'built'
533+ name : ' Building/fetching previous CI target: mathcomp-fingroup'
534+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
535+ --argstr job "mathcomp-fingroup"
536+ - if : steps.stepCheck.outputs.status == 'built'
537+ name : Building/fetching current CI target
538+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.18"
539+ --argstr job "interval"
465540 mathcomp :
466541 needs :
467542 - coq
@@ -1424,8 +1499,10 @@ name: Nix CI for bundle coq-8.18
14241499' on ' :
14251500 pull_request :
14261501 paths :
1427- - .github/workflows/**
1502+ - .github/workflows/nix-action-coq-8.18.yml
14281503 pull_request_target :
1504+ paths-ignore :
1505+ - .github/workflows/nix-action-coq-8.18.yml
14291506 types :
14301507 - opened
14311508 - synchronize
0 commit comments