|
1 | 1 | jobs:
|
| 2 | + bignums: |
| 3 | + needs: |
| 4 | + - coq |
| 5 | + - stdlib |
| 6 | + runs-on: ubuntu-latest |
| 7 | + steps: |
| 8 | + - name: Determine which commit to initially checkout |
| 9 | + run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"target_commit=${{ |
| 10 | + github.sha }}\" >> $GITHUB_ENV\nelse\n echo \"target_commit=${{ github.event.pull_request.head.sha |
| 11 | + }}\" >> $GITHUB_ENV\nfi\n" |
| 12 | + - name: Git checkout |
| 13 | + uses: actions/checkout@v4 |
| 14 | + with: |
| 15 | + fetch-depth: 0 |
| 16 | + ref: ${{ env.target_commit }} |
| 17 | + - name: Determine which commit to test |
| 18 | + run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_commit=${{ |
| 19 | + github.sha }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url |
| 20 | + }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git |
| 21 | + merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null |
| 22 | + 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \"$merge_commit\"\ |
| 23 | + \ -o \"x$mergeable\" != \"x0\" ]; then\n echo \"tested_commit=${{ github.event.pull_request.head.sha |
| 24 | + }}\" >> $GITHUB_ENV\n else\n echo \"tested_commit=$merge_commit\" >> $GITHUB_ENV\n\ |
| 25 | + \ fi\nfi\n" |
| 26 | + - name: Git checkout |
| 27 | + uses: actions/checkout@v4 |
| 28 | + with: |
| 29 | + fetch-depth: 0 |
| 30 | + ref: ${{ env.tested_commit }} |
| 31 | + - name: Cachix install |
| 32 | + uses: cachix/install-nix-action@v30 |
| 33 | + with: |
| 34 | + nix_path: nixpkgs=channel:nixpkgs-unstable |
| 35 | + - name: Cachix setup coq-elpi |
| 36 | + uses: cachix/cachix-action@v15 |
| 37 | + with: |
| 38 | + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} |
| 39 | + extraPullNames: coq, coq-community, math-comp |
| 40 | + name: coq-elpi |
| 41 | + - id: stepGetDerivation |
| 42 | + name: Getting derivation for current job (bignums) |
| 43 | + run: "NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle |
| 44 | + \"coq-master\" --argstr job \"bignums\" \\\n --dry-run 2> err > out || (touch |
| 45 | + fail; true)\n" |
| 46 | + - name: Error reporting |
| 47 | + run: "echo \"out=\"; cat out\necho \"err=\"; cat err\n" |
| 48 | + - name: Failure check |
| 49 | + run: if [ -e fail ]; then exit 1; else exit 0; fi; |
| 50 | + - id: stepCheck |
| 51 | + name: Checking presence of CI target for current job |
| 52 | + run: (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT |
| 53 | + - if: steps.stepCheck.outputs.status == 'built' |
| 54 | + name: 'Building/fetching previous CI target: coq' |
| 55 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 56 | + --argstr job "coq" |
| 57 | + - if: steps.stepCheck.outputs.status == 'built' |
| 58 | + name: 'Building/fetching previous CI target: stdlib' |
| 59 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 60 | + --argstr job "stdlib" |
| 61 | + - if: steps.stepCheck.outputs.status == 'built' |
| 62 | + name: Building/fetching current CI target |
| 63 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 64 | + --argstr job "bignums" |
2 | 65 | coq:
|
3 | 66 | needs: []
|
4 | 67 | runs-on: ubuntu-latest
|
@@ -115,6 +178,84 @@ jobs:
|
115 | 178 | name: Building/fetching current CI target
|
116 | 179 | run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
|
117 | 180 | --argstr job "coq-elpi"
|
| 181 | + coqeal: |
| 182 | + needs: |
| 183 | + - coq |
| 184 | + - mathcomp-algebra |
| 185 | + - bignums |
| 186 | + - multinomials |
| 187 | + - mathcomp-real-closed |
| 188 | + runs-on: ubuntu-latest |
| 189 | + steps: |
| 190 | + - name: Determine which commit to initially checkout |
| 191 | + run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"target_commit=${{ |
| 192 | + github.sha }}\" >> $GITHUB_ENV\nelse\n echo \"target_commit=${{ github.event.pull_request.head.sha |
| 193 | + }}\" >> $GITHUB_ENV\nfi\n" |
| 194 | + - name: Git checkout |
| 195 | + uses: actions/checkout@v4 |
| 196 | + with: |
| 197 | + fetch-depth: 0 |
| 198 | + ref: ${{ env.target_commit }} |
| 199 | + - name: Determine which commit to test |
| 200 | + run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_commit=${{ |
| 201 | + github.sha }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url |
| 202 | + }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git |
| 203 | + merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null |
| 204 | + 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \"$merge_commit\"\ |
| 205 | + \ -o \"x$mergeable\" != \"x0\" ]; then\n echo \"tested_commit=${{ github.event.pull_request.head.sha |
| 206 | + }}\" >> $GITHUB_ENV\n else\n echo \"tested_commit=$merge_commit\" >> $GITHUB_ENV\n\ |
| 207 | + \ fi\nfi\n" |
| 208 | + - name: Git checkout |
| 209 | + uses: actions/checkout@v4 |
| 210 | + with: |
| 211 | + fetch-depth: 0 |
| 212 | + ref: ${{ env.tested_commit }} |
| 213 | + - name: Cachix install |
| 214 | + uses: cachix/install-nix-action@v30 |
| 215 | + with: |
| 216 | + nix_path: nixpkgs=channel:nixpkgs-unstable |
| 217 | + - name: Cachix setup coq-elpi |
| 218 | + uses: cachix/cachix-action@v15 |
| 219 | + with: |
| 220 | + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} |
| 221 | + extraPullNames: coq, coq-community, math-comp |
| 222 | + name: coq-elpi |
| 223 | + - id: stepGetDerivation |
| 224 | + name: Getting derivation for current job (coqeal) |
| 225 | + run: "NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle |
| 226 | + \"coq-master\" --argstr job \"coqeal\" \\\n --dry-run 2> err > out || (touch |
| 227 | + fail; true)\n" |
| 228 | + - name: Error reporting |
| 229 | + run: "echo \"out=\"; cat out\necho \"err=\"; cat err\n" |
| 230 | + - name: Failure check |
| 231 | + run: if [ -e fail ]; then exit 1; else exit 0; fi; |
| 232 | + - id: stepCheck |
| 233 | + name: Checking presence of CI target for current job |
| 234 | + run: (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT |
| 235 | + - if: steps.stepCheck.outputs.status == 'built' |
| 236 | + name: 'Building/fetching previous CI target: coq' |
| 237 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 238 | + --argstr job "coq" |
| 239 | + - if: steps.stepCheck.outputs.status == 'built' |
| 240 | + name: 'Building/fetching previous CI target: mathcomp-algebra' |
| 241 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 242 | + --argstr job "mathcomp-algebra" |
| 243 | + - if: steps.stepCheck.outputs.status == 'built' |
| 244 | + name: 'Building/fetching previous CI target: bignums' |
| 245 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 246 | + --argstr job "bignums" |
| 247 | + - if: steps.stepCheck.outputs.status == 'built' |
| 248 | + name: 'Building/fetching previous CI target: multinomials' |
| 249 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 250 | + --argstr job "multinomials" |
| 251 | + - if: steps.stepCheck.outputs.status == 'built' |
| 252 | + name: 'Building/fetching previous CI target: mathcomp-real-closed' |
| 253 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 254 | + --argstr job "mathcomp-real-closed" |
| 255 | + - if: steps.stepCheck.outputs.status == 'built' |
| 256 | + name: Building/fetching current CI target |
| 257 | + run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master" |
| 258 | + --argstr job "coqeal" |
118 | 259 | hierarchy-builder:
|
119 | 260 | needs:
|
120 | 261 | - coq
|
|
0 commit comments