-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0d3db4
commit d60965d
Showing
11 changed files
with
1,685 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
jobs: | ||
coq: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Determine which ref to test | ||
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_ref=${{\ | ||
\ github.ref }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{\ | ||
\ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\ | ||
\ | cut -f1)\n if [ -z \"$merge_commit\" ]; then\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/head\" >> $GITHUB_ENV\n else\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/merge\" >> $GITHUB_ENV\n fi\nfi\n" | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ env.tested_ref }} | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup coq | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq | ||
- name: Cachix setup coq-community | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq-community | ||
- name: Cachix setup math-comp | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
name: math-comp | ||
- id: stepCheck | ||
name: Checking presence of CI target coq | ||
run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\ | ||
\ bundle \"coq8.10+mc1.11\" --argstr job \"coq\" \\\n --dry-run 2>&1 > /dev/null)\n\ | ||
echo ::set-output name=status::$(echo $nb_dry_run | grep \"built:\" | sed\ | ||
\ \"s/.*/built/\")\n" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: Building/fetching current CI target | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "coq" | ||
coqeal: | ||
needs: | ||
- coq | ||
- multinomials | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Determine which ref to test | ||
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_ref=${{\ | ||
\ github.ref }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{\ | ||
\ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\ | ||
\ | cut -f1)\n if [ -z \"$merge_commit\" ]; then\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/head\" >> $GITHUB_ENV\n else\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/merge\" >> $GITHUB_ENV\n fi\nfi\n" | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ env.tested_ref }} | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup coq | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq | ||
- name: Cachix setup coq-community | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq-community | ||
- name: Cachix setup math-comp | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
name: math-comp | ||
- id: stepCheck | ||
name: Checking presence of CI target coqeal | ||
run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\ | ||
\ bundle \"coq8.10+mc1.11\" --argstr job \"coqeal\" \\\n --dry-run 2>&1\ | ||
\ > /dev/null)\necho ::set-output name=status::$(echo $nb_dry_run | grep \"\ | ||
built:\" | sed \"s/.*/built/\")\n" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: coq' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "coq" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-algebra' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-algebra" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: bignums' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "bignums" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: paramcoq' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "paramcoq" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: multinomials' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "multinomials" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: Building/fetching current CI target | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "coqeal" | ||
mathcomp: | ||
needs: | ||
- coq | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Determine which ref to test | ||
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_ref=${{\ | ||
\ github.ref }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{\ | ||
\ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\ | ||
\ | cut -f1)\n if [ -z \"$merge_commit\" ]; then\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/head\" >> $GITHUB_ENV\n else\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/merge\" >> $GITHUB_ENV\n fi\nfi\n" | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ env.tested_ref }} | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup coq | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq | ||
- name: Cachix setup coq-community | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq-community | ||
- name: Cachix setup math-comp | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
name: math-comp | ||
- id: stepCheck | ||
name: Checking presence of CI target mathcomp | ||
run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\ | ||
\ bundle \"coq8.10+mc1.11\" --argstr job \"mathcomp\" \\\n --dry-run 2>&1\ | ||
\ > /dev/null)\necho ::set-output name=status::$(echo $nb_dry_run | grep \"\ | ||
built:\" | sed \"s/.*/built/\")\n" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: coq' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "coq" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-ssreflect' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-ssreflect" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-fingroup' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-fingroup" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-algebra' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-algebra" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-solvable' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-solvable" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-field' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-field" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-character' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-character" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: Building/fetching current CI target | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp" | ||
multinomials: | ||
needs: | ||
- coq | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Determine which ref to test | ||
run: "if [ ${{ github.event_name }} = \"push\" ]; then\n echo \"tested_ref=${{\ | ||
\ github.ref }}\" >> $GITHUB_ENV\nelse\n merge_commit=$(git ls-remote ${{\ | ||
\ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\ | ||
\ | cut -f1)\n if [ -z \"$merge_commit\" ]; then\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/head\" >> $GITHUB_ENV\n else\n echo \"tested_ref=refs/pull/${{\ | ||
\ github.event.number }}/merge\" >> $GITHUB_ENV\n fi\nfi\n" | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ env.tested_ref }} | ||
- name: Cachix install | ||
uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Cachix setup coq | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq | ||
- name: Cachix setup coq-community | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
name: coq-community | ||
- name: Cachix setup math-comp | ||
uses: cachix/cachix-action@v8 | ||
with: | ||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | ||
name: math-comp | ||
- id: stepCheck | ||
name: Checking presence of CI target multinomials | ||
run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\ | ||
\ bundle \"coq8.10+mc1.11\" --argstr job \"multinomials\" \\\n --dry-run\ | ||
\ 2>&1 > /dev/null)\necho ::set-output name=status::$(echo $nb_dry_run | grep\ | ||
\ \"built:\" | sed \"s/.*/built/\")\n" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: coq' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "coq" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-ssreflect' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-ssreflect" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-algebra' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-algebra" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-finmap' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-finmap" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: 'Building/fetching previous CI target: mathcomp-bigenough' | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "mathcomp-bigenough" | ||
- if: steps.stepCheck.outputs.status == 'built' | ||
name: Building/fetching current CI target | ||
run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq8.10+mc1.11" | ||
--argstr job "multinomials" | ||
name: Nix CI for bundle coq8.10+mc1.11 | ||
'on': | ||
pull_request: | ||
paths: | ||
- .github/workflows/** | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
push: | ||
branches: | ||
- master |
Oops, something went wrong.