Skip to content

Commit 0d929ab

Browse files
authored
Merge pull request #546 from proux01/ci-update
[CI] Add Rocq 9.1
2 parents 4b6a76f + d5b929d commit 0d929ab

File tree

4 files changed

+2752
-2
lines changed

4 files changed

+2752
-2
lines changed

.github/workflows/nix-action-coq-9.0.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,88 @@ jobs:
742742
name: Building/fetching current CI target
743743
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
744744
--argstr job "hierarchy-builder"
745+
interval:
746+
needs:
747+
- coq
748+
- coquelicot
749+
- mathcomp-boot
750+
- mathcomp-fingroup
751+
runs-on: ubuntu-latest
752+
steps:
753+
- name: Determine which commit to initially checkout
754+
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"target_commit=${{
755+
github.sha }}\" >> $GITHUB_ENV\nelse\n echo \"target_commit=${{ github.event.pull_request.head.sha
756+
}}\" >> $GITHUB_ENV\nfi\n"
757+
- name: Git checkout
758+
uses: actions/checkout@v4
759+
with:
760+
fetch-depth: 0
761+
ref: ${{ env.target_commit }}
762+
- name: Determine which commit to test
763+
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_commit=${{
764+
github.sha }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
765+
}} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
766+
merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
767+
2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \"$merge_commit\"\
768+
\ -o \"x$mergeable\" != \"x0\" ]; then\n echo \"tested_commit=${{ github.event.pull_request.head.sha
769+
}}\" >> $GITHUB_ENV\n else\n echo \"tested_commit=$merge_commit\" >> $GITHUB_ENV\n\
770+
\ fi\nfi\n"
771+
- name: Git checkout
772+
uses: actions/checkout@v4
773+
with:
774+
fetch-depth: 0
775+
ref: ${{ env.tested_commit }}
776+
- name: Cachix install
777+
uses: cachix/install-nix-action@v31
778+
with:
779+
nix_path: nixpkgs=channel:nixpkgs-unstable
780+
- name: Cachix setup math-comp
781+
uses: cachix/cachix-action@v16
782+
with:
783+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
784+
extraPullNames: coq, coq-community
785+
name: math-comp
786+
- id: stepGetDerivation
787+
name: Getting derivation for current job (interval)
788+
run: "NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
789+
\"coq-9.0\" --argstr job \"interval\" \\\n --dry-run 2> err > out || (touch
790+
fail; true)\ncat out err\nif [ -e fail ]; then echo \"Error: getting derivation
791+
failed\"; exit 1; fi\n"
792+
- id: stepCheck
793+
name: Checking presence of CI target for current job
794+
run: "if $(cat out err | grep -q \"built:\") ; then\n echo \"CI target needs
795+
actual building\"\n if $(cat out err | grep -q \"derivations will be built:\"\
796+
) ; then\n echo \"waiting a bit for derivations that should be in cache\"\
797+
\n sleep 30\n fi\nelse\n echo \"CI target already built\"\n echo \"\
798+
status=fetched\" >> $GITHUB_OUTPUT\nfi\n"
799+
- if: steps.stepCheck.outputs.status != 'fetched'
800+
name: 'Building/fetching previous CI target: coq'
801+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
802+
--argstr job "coq"
803+
- if: steps.stepCheck.outputs.status != 'fetched'
804+
name: 'Building/fetching previous CI target: bignums'
805+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
806+
--argstr job "bignums"
807+
- if: steps.stepCheck.outputs.status != 'fetched'
808+
name: 'Building/fetching previous CI target: coquelicot'
809+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
810+
--argstr job "coquelicot"
811+
- if: steps.stepCheck.outputs.status != 'fetched'
812+
name: 'Building/fetching previous CI target: flocq'
813+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
814+
--argstr job "flocq"
815+
- if: steps.stepCheck.outputs.status != 'fetched'
816+
name: 'Building/fetching previous CI target: mathcomp-boot'
817+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
818+
--argstr job "mathcomp-boot"
819+
- if: steps.stepCheck.outputs.status != 'fetched'
820+
name: 'Building/fetching previous CI target: mathcomp-fingroup'
821+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
822+
--argstr job "mathcomp-fingroup"
823+
- if: steps.stepCheck.outputs.status != 'fetched'
824+
name: Building/fetching current CI target
825+
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-9.0"
826+
--argstr job "interval"
745827
mathcomp:
746828
needs:
747829
- coq

0 commit comments

Comments
 (0)