@@ -314,6 +314,7 @@ jobs:
314
314
- coq
315
315
- mathcomp-classical
316
316
- mathcomp-field
317
+ - mathcomp-bigenough
317
318
- hierarchy-builder
318
319
runs-on : ubuntu-latest
319
320
steps :
@@ -368,6 +369,10 @@ jobs:
368
369
name : ' Building/fetching previous CI target: mathcomp-field'
369
370
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
370
371
--argstr job "mathcomp-field"
372
+ - if : steps.stepCheck.outputs.status == 'built'
373
+ name : ' Building/fetching previous CI target: mathcomp-bigenough'
374
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
375
+ --argstr job "mathcomp-bigenough"
371
376
- if : steps.stepCheck.outputs.status == 'built'
372
377
name : ' Building/fetching previous CI target: hierarchy-builder'
373
378
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
@@ -376,6 +381,63 @@ jobs:
376
381
name : Building/fetching current CI target
377
382
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
378
383
--argstr job "mathcomp-analysis"
384
+ mathcomp-bigenough :
385
+ needs :
386
+ - coq
387
+ - mathcomp-ssreflect
388
+ runs-on : ubuntu-latest
389
+ steps :
390
+ - name : Determine which commit to initially checkout
391
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{\
392
+ \ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha\
393
+ \ }}\" >> $GITHUB_ENV\n fi\n "
394
+ - name : Git checkout
395
+ uses : actions/checkout@v3
396
+ with :
397
+ fetch-depth : 0
398
+ ref : ${{ env.target_commit }}
399
+ - name : Determine which commit to test
400
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{\
401
+ \ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{\
402
+ \ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\
403
+ \ | cut -f1)\n mergeable=$(git merge --no-commit --no-ff ${{ github.event.pull_request.base.sha\
404
+ \ }} > /dev/null 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n \
405
+ \ if [ -z \" $merge_commit\" -o \" x$mergeable\" != \" x0\" ]; then\n echo\
406
+ \ \" tested_commit=${{ github.event.pull_request.head.sha }}\" >> $GITHUB_ENV\n \
407
+ \ else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n fi\n fi\n "
408
+ - name : Git checkout
409
+ uses : actions/checkout@v3
410
+ with :
411
+ fetch-depth : 0
412
+ ref : ${{ env.tested_commit }}
413
+ - name : Cachix install
414
+ uses : cachix/install-nix-action@v20
415
+ with :
416
+ nix_path : nixpkgs=channel:nixpkgs-unstable
417
+ - name : Cachix setup coq-elpi
418
+ uses : cachix/cachix-action@v12
419
+ with :
420
+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
421
+ extraPullNames : coq, coq-community, math-comp
422
+ name : coq-elpi
423
+ - id : stepCheck
424
+ name : Checking presence of CI target mathcomp-bigenough
425
+ run : " nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\
426
+ \ bundle \" coq-8.19\" --argstr job \" mathcomp-bigenough\" \\\n --dry-run\
427
+ \ 2>&1 > /dev/null)\n echo $nb_dry_run\n echo status=$(echo $nb_dry_run | grep\
428
+ \ \" built:\" | sed \" s/.*/built/\" ) >> $GITHUB_OUTPUT\n "
429
+ - if : steps.stepCheck.outputs.status == 'built'
430
+ name : ' Building/fetching previous CI target: coq'
431
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
432
+ --argstr job "coq"
433
+ - if : steps.stepCheck.outputs.status == 'built'
434
+ name : ' Building/fetching previous CI target: mathcomp-ssreflect'
435
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
436
+ --argstr job "mathcomp-ssreflect"
437
+ - if : steps.stepCheck.outputs.status == 'built'
438
+ name : Building/fetching current CI target
439
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-8.19"
440
+ --argstr job "mathcomp-bigenough"
379
441
mathcomp-character :
380
442
needs :
381
443
- coq
0 commit comments