@@ -332,8 +332,7 @@ jobs:
332
332
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
333
333
--argstr job "coq-bits"
334
334
coq-elpi :
335
- needs :
336
- - coq
335
+ needs : []
337
336
runs-on : ubuntu-latest
338
337
steps :
339
338
- name : Determine which commit to initially checkout
@@ -382,10 +381,6 @@ jobs:
382
381
) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
383
382
\n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
384
383
status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
385
- - if : steps.stepCheck.outputs.status != 'fetched'
386
- name : ' Building/fetching previous CI target: coq'
387
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
388
- --argstr job "coq"
389
384
- if : steps.stepCheck.outputs.status != 'fetched'
390
385
name : Building/fetching current CI target
391
386
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
@@ -680,7 +675,6 @@ jobs:
680
675
--argstr job "fourcolor"
681
676
hierarchy-builder :
682
677
needs :
683
- - coq
684
678
- coq-elpi
685
679
runs-on : ubuntu-latest
686
680
steps :
@@ -730,10 +724,6 @@ jobs:
730
724
) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
731
725
\n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
732
726
status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
733
- - if : steps.stepCheck.outputs.status != 'fetched'
734
- name : ' Building/fetching previous CI target: coq'
735
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
736
- --argstr job "coq"
737
727
- if : steps.stepCheck.outputs.status != 'fetched'
738
728
name : ' Building/fetching previous CI target: coq-elpi'
739
729
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
@@ -2664,6 +2654,114 @@ jobs:
2664
2654
name : Building/fetching current CI target
2665
2655
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
2666
2656
--argstr job "reglang"
2657
+ rocq-core :
2658
+ needs : []
2659
+ runs-on : ubuntu-latest
2660
+ steps :
2661
+ - name : Determine which commit to initially checkout
2662
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
2663
+ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
2664
+ }}\" >> $GITHUB_ENV\n fi\n "
2665
+ - name : Git checkout
2666
+ uses : actions/checkout@v4
2667
+ with :
2668
+ fetch-depth : 0
2669
+ ref : ${{ env.target_commit }}
2670
+ - name : Determine which commit to test
2671
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
2672
+ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
2673
+ }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
2674
+ merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
2675
+ 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
2676
+ \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
2677
+ }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
2678
+ \ fi\n fi\n "
2679
+ - name : Git checkout
2680
+ uses : actions/checkout@v4
2681
+ with :
2682
+ fetch-depth : 0
2683
+ ref : ${{ env.tested_commit }}
2684
+ - name : Cachix install
2685
+ uses : cachix/install-nix-action@v31
2686
+ with :
2687
+ nix_path : nixpkgs=channel:nixpkgs-unstable
2688
+ - name : Cachix setup math-comp
2689
+ uses : cachix/cachix-action@v16
2690
+ with :
2691
+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
2692
+ extraPullNames : coq, coq-community
2693
+ name : math-comp
2694
+ - id : stepGetDerivation
2695
+ name : Getting derivation for current job (rocq-core)
2696
+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
2697
+ \" coq-9.0\" --argstr job \" rocq-core\" \\\n --dry-run 2> err > out || (touch
2698
+ fail; true)\n cat out err\n if [ -e fail ]; then echo \" Error: getting derivation
2699
+ failed\" ; exit 1; fi\n "
2700
+ - id : stepCheck
2701
+ name : Checking presence of CI target for current job
2702
+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
2703
+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
2704
+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
2705
+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
2706
+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
2707
+ - if : steps.stepCheck.outputs.status != 'fetched'
2708
+ name : Building/fetching current CI target
2709
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
2710
+ --argstr job "rocq-core"
2711
+ rocq-elpi :
2712
+ needs : []
2713
+ runs-on : ubuntu-latest
2714
+ steps :
2715
+ - name : Determine which commit to initially checkout
2716
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
2717
+ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
2718
+ }}\" >> $GITHUB_ENV\n fi\n "
2719
+ - name : Git checkout
2720
+ uses : actions/checkout@v4
2721
+ with :
2722
+ fetch-depth : 0
2723
+ ref : ${{ env.target_commit }}
2724
+ - name : Determine which commit to test
2725
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
2726
+ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
2727
+ }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
2728
+ merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
2729
+ 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
2730
+ \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
2731
+ }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
2732
+ \ fi\n fi\n "
2733
+ - name : Git checkout
2734
+ uses : actions/checkout@v4
2735
+ with :
2736
+ fetch-depth : 0
2737
+ ref : ${{ env.tested_commit }}
2738
+ - name : Cachix install
2739
+ uses : cachix/install-nix-action@v31
2740
+ with :
2741
+ nix_path : nixpkgs=channel:nixpkgs-unstable
2742
+ - name : Cachix setup math-comp
2743
+ uses : cachix/cachix-action@v16
2744
+ with :
2745
+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
2746
+ extraPullNames : coq, coq-community
2747
+ name : math-comp
2748
+ - id : stepGetDerivation
2749
+ name : Getting derivation for current job (rocq-elpi)
2750
+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
2751
+ \" coq-9.0\" --argstr job \" rocq-elpi\" \\\n --dry-run 2> err > out || (touch
2752
+ fail; true)\n cat out err\n if [ -e fail ]; then echo \" Error: getting derivation
2753
+ failed\" ; exit 1; fi\n "
2754
+ - id : stepCheck
2755
+ name : Checking presence of CI target for current job
2756
+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
2757
+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
2758
+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
2759
+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
2760
+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
2761
+ - if : steps.stepCheck.outputs.status != 'fetched'
2762
+ name : Building/fetching current CI target
2763
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
2764
+ --argstr job "rocq-elpi"
2667
2765
simple-io :
2668
2766
needs :
2669
2767
- coq
0 commit comments