Skip to content

Commit a410b3f

Browse files
authored
Merge pull request #246 from proux01/ci-update
[CI] Update Nix toolbox
2 parents dcf7714 + fb636a8 commit a410b3f

File tree

16 files changed

+186
-1033
lines changed

16 files changed

+186
-1033
lines changed

.github/workflows/nix-action-rocq-9.1.yml

Lines changed: 84 additions & 73 deletions
Large diffs are not rendered by default.

.github/workflows/nix-action-rocq-9.2.yml

Lines changed: 33 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ jobs:
467467
- coq
468468
- Cheerios
469469
- InfSeqExt
470-
- mathcomp-ssreflect
471470
runs-on: ubuntu-latest
472471
steps:
473472
- name: Determine which commit to initially checkout
@@ -1642,7 +1641,6 @@ jobs:
16421641
deriving:
16431642
needs:
16441643
- coq
1645-
- mathcomp-ssreflect
16461644
- stdlib
16471645
runs-on: ubuntu-latest
16481646
steps:
@@ -2370,7 +2368,7 @@ jobs:
23702368
"rocq-9.2" --argstr job "math-classes"
23712369
mathcomp:
23722370
needs:
2373-
- coq
2371+
- rocq-core
23742372
- mathcomp-character
23752373
- hierarchy-builder
23762374
runs-on: ubuntu-latest
@@ -2422,9 +2420,9 @@ jobs:
24222420
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
24232421
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
24242422
- if: steps.stepCheck.outputs.status != 'fetched'
2425-
name: 'Building/fetching previous CI target: coq'
2423+
name: 'Building/fetching previous CI target: rocq-core'
24262424
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2427-
"rocq-9.2" --argstr job "coq"
2425+
"rocq-9.2" --argstr job "rocq-core"
24282426
- if: steps.stepCheck.outputs.status != 'fetched'
24292427
name: 'Building/fetching previous CI target: mathcomp-character'
24302428
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -2439,7 +2437,7 @@ jobs:
24392437
"rocq-9.2" --argstr job "mathcomp"
24402438
mathcomp-algebra:
24412439
needs:
2442-
- coq
2440+
- rocq-core
24432441
- mathcomp-order
24442442
- mathcomp-fingroup
24452443
- hierarchy-builder
@@ -2492,9 +2490,9 @@ jobs:
24922490
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
24932491
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
24942492
- if: steps.stepCheck.outputs.status != 'fetched'
2495-
name: 'Building/fetching previous CI target: coq'
2493+
name: 'Building/fetching previous CI target: rocq-core'
24962494
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2497-
"rocq-9.2" --argstr job "coq"
2495+
"rocq-9.2" --argstr job "rocq-core"
24982496
- if: steps.stepCheck.outputs.status != 'fetched'
24992497
name: 'Building/fetching previous CI target: mathcomp-order'
25002498
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -2514,7 +2512,6 @@ jobs:
25142512
mathcomp-algebra-tactics:
25152513
needs:
25162514
- coq
2517-
- mathcomp-ssreflect
25182515
- mathcomp-algebra
25192516
- coq-elpi
25202517
- mathcomp-zify
@@ -2750,7 +2747,7 @@ jobs:
27502747
"rocq-9.2" --argstr job "mathcomp-analysis-stdlib"
27512748
mathcomp-bigenough:
27522749
needs:
2753-
- coq
2750+
- rocq-core
27542751
- mathcomp-boot
27552752
runs-on: ubuntu-latest
27562753
steps:
@@ -2801,9 +2798,9 @@ jobs:
28012798
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
28022799
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
28032800
- if: steps.stepCheck.outputs.status != 'fetched'
2804-
name: 'Building/fetching previous CI target: coq'
2801+
name: 'Building/fetching previous CI target: rocq-core'
28052802
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2806-
"rocq-9.2" --argstr job "coq"
2803+
"rocq-9.2" --argstr job "rocq-core"
28072804
- if: steps.stepCheck.outputs.status != 'fetched'
28082805
name: 'Building/fetching previous CI target: mathcomp-boot'
28092806
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -2814,7 +2811,7 @@ jobs:
28142811
"rocq-9.2" --argstr job "mathcomp-bigenough"
28152812
mathcomp-boot:
28162813
needs:
2817-
- coq
2814+
- rocq-core
28182815
- hierarchy-builder
28192816
runs-on: ubuntu-latest
28202817
steps:
@@ -2865,9 +2862,9 @@ jobs:
28652862
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
28662863
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
28672864
- if: steps.stepCheck.outputs.status != 'fetched'
2868-
name: 'Building/fetching previous CI target: coq'
2865+
name: 'Building/fetching previous CI target: rocq-core'
28692866
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2870-
"rocq-9.2" --argstr job "coq"
2867+
"rocq-9.2" --argstr job "rocq-core"
28712868
- if: steps.stepCheck.outputs.status != 'fetched'
28722869
name: 'Building/fetching previous CI target: hierarchy-builder'
28732870
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -2878,7 +2875,7 @@ jobs:
28782875
"rocq-9.2" --argstr job "mathcomp-boot"
28792876
mathcomp-character:
28802877
needs:
2881-
- coq
2878+
- rocq-core
28822879
- mathcomp-field
28832880
- hierarchy-builder
28842881
runs-on: ubuntu-latest
@@ -2930,9 +2927,9 @@ jobs:
29302927
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
29312928
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
29322929
- if: steps.stepCheck.outputs.status != 'fetched'
2933-
name: 'Building/fetching previous CI target: coq'
2930+
name: 'Building/fetching previous CI target: rocq-core'
29342931
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2935-
"rocq-9.2" --argstr job "coq"
2932+
"rocq-9.2" --argstr job "rocq-core"
29362933
- if: steps.stepCheck.outputs.status != 'fetched'
29372934
name: 'Building/fetching previous CI target: mathcomp-field'
29382935
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -2948,7 +2945,6 @@ jobs:
29482945
mathcomp-classical:
29492946
needs:
29502947
- coq
2951-
- mathcomp-ssreflect
29522948
- mathcomp-algebra
29532949
- mathcomp-finmap
29542950
- hierarchy-builder
@@ -3026,7 +3022,7 @@ jobs:
30263022
"rocq-9.2" --argstr job "mathcomp-classical"
30273023
mathcomp-field:
30283024
needs:
3029-
- coq
3025+
- rocq-core
30303026
- mathcomp-solvable
30313027
- hierarchy-builder
30323028
runs-on: ubuntu-latest
@@ -3078,9 +3074,9 @@ jobs:
30783074
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
30793075
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
30803076
- if: steps.stepCheck.outputs.status != 'fetched'
3081-
name: 'Building/fetching previous CI target: coq'
3077+
name: 'Building/fetching previous CI target: rocq-core'
30823078
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3083-
"rocq-9.2" --argstr job "coq"
3079+
"rocq-9.2" --argstr job "rocq-core"
30843080
- if: steps.stepCheck.outputs.status != 'fetched'
30853081
name: 'Building/fetching previous CI target: mathcomp-solvable'
30863082
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -3095,7 +3091,7 @@ jobs:
30953091
"rocq-9.2" --argstr job "mathcomp-field"
30963092
mathcomp-fingroup:
30973093
needs:
3098-
- coq
3094+
- rocq-core
30993095
- mathcomp-boot
31003096
- hierarchy-builder
31013097
runs-on: ubuntu-latest
@@ -3147,9 +3143,9 @@ jobs:
31473143
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
31483144
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
31493145
- if: steps.stepCheck.outputs.status != 'fetched'
3150-
name: 'Building/fetching previous CI target: coq'
3146+
name: 'Building/fetching previous CI target: rocq-core'
31513147
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3152-
"rocq-9.2" --argstr job "coq"
3148+
"rocq-9.2" --argstr job "rocq-core"
31533149
- if: steps.stepCheck.outputs.status != 'fetched'
31543150
name: 'Building/fetching previous CI target: mathcomp-boot'
31553151
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -3164,7 +3160,7 @@ jobs:
31643160
"rocq-9.2" --argstr job "mathcomp-fingroup"
31653161
mathcomp-finmap:
31663162
needs:
3167-
- coq
3163+
- rocq-core
31683164
- mathcomp-boot
31693165
runs-on: ubuntu-latest
31703166
steps:
@@ -3215,9 +3211,9 @@ jobs:
32153211
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
32163212
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
32173213
- if: steps.stepCheck.outputs.status != 'fetched'
3218-
name: 'Building/fetching previous CI target: coq'
3214+
name: 'Building/fetching previous CI target: rocq-core'
32193215
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3220-
"rocq-9.2" --argstr job "coq"
3216+
"rocq-9.2" --argstr job "rocq-core"
32213217
- if: steps.stepCheck.outputs.status != 'fetched'
32223218
name: 'Building/fetching previous CI target: mathcomp-boot'
32233219
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -3228,7 +3224,7 @@ jobs:
32283224
"rocq-9.2" --argstr job "mathcomp-finmap"
32293225
mathcomp-order:
32303226
needs:
3231-
- coq
3227+
- rocq-core
32323228
- mathcomp-boot
32333229
- hierarchy-builder
32343230
runs-on: ubuntu-latest
@@ -3280,9 +3276,9 @@ jobs:
32803276
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
32813277
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
32823278
- if: steps.stepCheck.outputs.status != 'fetched'
3283-
name: 'Building/fetching previous CI target: coq'
3279+
name: 'Building/fetching previous CI target: rocq-core'
32843280
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3285-
"rocq-9.2" --argstr job "coq"
3281+
"rocq-9.2" --argstr job "rocq-core"
32863282
- if: steps.stepCheck.outputs.status != 'fetched'
32873283
name: 'Building/fetching previous CI target: mathcomp-boot'
32883284
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -3440,7 +3436,7 @@ jobs:
34403436
"rocq-9.2" --argstr job "mathcomp-reals-stdlib"
34413437
mathcomp-solvable:
34423438
needs:
3443-
- coq
3439+
- rocq-core
34443440
- mathcomp-algebra
34453441
- hierarchy-builder
34463442
runs-on: ubuntu-latest
@@ -3492,9 +3488,9 @@ jobs:
34923488
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
34933489
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
34943490
- if: steps.stepCheck.outputs.status != 'fetched'
3495-
name: 'Building/fetching previous CI target: coq'
3491+
name: 'Building/fetching previous CI target: rocq-core'
34963492
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3497-
"rocq-9.2" --argstr job "coq"
3493+
"rocq-9.2" --argstr job "rocq-core"
34983494
- if: steps.stepCheck.outputs.status != 'fetched'
34993495
name: 'Building/fetching previous CI target: mathcomp-algebra'
35003496
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
@@ -3507,85 +3503,10 @@ jobs:
35073503
name: Building/fetching current CI target
35083504
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
35093505
"rocq-9.2" --argstr job "mathcomp-solvable"
3510-
mathcomp-ssreflect:
3511-
needs:
3512-
- coq
3513-
- mathcomp-boot
3514-
- mathcomp-order
3515-
- hierarchy-builder
3516-
runs-on: ubuntu-latest
3517-
steps:
3518-
- name: Determine which commit to initially checkout
3519-
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"target_commit=${{
3520-
github.sha }}\" >> $GITHUB_ENV\nelse\n echo \"target_commit=${{ github.event.pull_request.head.sha
3521-
}}\" >> $GITHUB_ENV\nfi\n"
3522-
- name: Git checkout
3523-
uses: actions/checkout@v6
3524-
with:
3525-
fetch-depth: 0
3526-
ref: ${{ env.target_commit }}
3527-
- name: Determine which commit to test
3528-
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_commit=${{
3529-
github.sha }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
3530-
}} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
3531-
merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
3532-
2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \"$merge_commit\"\
3533-
\ -o \"x$mergeable\" != \"x0\" ]; then\n echo \"tested_commit=${{ github.event.pull_request.head.sha
3534-
}}\" >> $GITHUB_ENV\n else\n echo \"tested_commit=$merge_commit\" >> $GITHUB_ENV\n\
3535-
\ fi\nfi\n"
3536-
- name: Git checkout
3537-
uses: actions/checkout@v6
3538-
with:
3539-
fetch-depth: 0
3540-
ref: ${{ env.tested_commit }}
3541-
- name: Cachix install
3542-
uses: cachix/install-nix-action@v31
3543-
with:
3544-
nix_path: nixpkgs=channel:nixpkgs-unstable
3545-
- name: Cachix setup coq
3546-
uses: cachix/cachix-action@v16
3547-
with:
3548-
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
3549-
extraPullNames: coq-community, math-comp
3550-
name: coq
3551-
- id: stepGetDerivation
3552-
name: Getting derivation for current job (mathcomp-ssreflect)
3553-
run: "NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
3554-
\"rocq-9.2\" --argstr job \"mathcomp-ssreflect\" \\\n --dry-run 2> err >
3555-
out || (touch fail; true)\ncat out err\nif [ -e fail ]; then echo \"Error:
3556-
getting derivation failed\"; exit 1; fi\n"
3557-
- id: stepCheck
3558-
name: Checking presence of CI target for current job
3559-
run: "if $(cat out err | grep -q \"built:\") ; then\n echo \"CI target needs
3560-
actual building\"\n if $(cat out err | grep -q \"derivations will be built:\"\
3561-
) ; then\n echo \"waiting a bit for derivations that should be in cache\"\
3562-
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
3563-
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
3564-
- if: steps.stepCheck.outputs.status != 'fetched'
3565-
name: 'Building/fetching previous CI target: coq'
3566-
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3567-
"rocq-9.2" --argstr job "coq"
3568-
- if: steps.stepCheck.outputs.status != 'fetched'
3569-
name: 'Building/fetching previous CI target: mathcomp-boot'
3570-
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3571-
"rocq-9.2" --argstr job "mathcomp-boot"
3572-
- if: steps.stepCheck.outputs.status != 'fetched'
3573-
name: 'Building/fetching previous CI target: mathcomp-order'
3574-
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3575-
"rocq-9.2" --argstr job "mathcomp-order"
3576-
- if: steps.stepCheck.outputs.status != 'fetched'
3577-
name: 'Building/fetching previous CI target: hierarchy-builder'
3578-
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3579-
"rocq-9.2" --argstr job "hierarchy-builder"
3580-
- if: steps.stepCheck.outputs.status != 'fetched'
3581-
name: Building/fetching current CI target
3582-
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
3583-
"rocq-9.2" --argstr job "mathcomp-ssreflect"
35843506
mathcomp-word:
35853507
needs:
35863508
- coq
35873509
- mathcomp-algebra
3588-
- mathcomp-ssreflect
35893510
- mathcomp-fingroup
35903511
- stdlib
35913512
runs-on: ubuntu-latest
@@ -4883,7 +4804,7 @@ jobs:
48834804
"rocq-9.2" --argstr job "stdlib-warnings"
48844805
stdpp:
48854806
needs:
4886-
- coq
4807+
- rocq-core
48874808
- stdlib
48884809
runs-on: ubuntu-latest
48894810
steps:
@@ -4934,9 +4855,9 @@ jobs:
49344855
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
49354856
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
49364857
- if: steps.stepCheck.outputs.status != 'fetched'
4937-
name: 'Building/fetching previous CI target: coq'
4858+
name: 'Building/fetching previous CI target: rocq-core'
49384859
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
4939-
"rocq-9.2" --argstr job "coq"
4860+
"rocq-9.2" --argstr job "rocq-core"
49404861
- if: steps.stepCheck.outputs.status != 'fetched'
49414862
name: 'Building/fetching previous CI target: stdlib'
49424863
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle

0 commit comments

Comments
 (0)