| 
 | 1 | +jobs:  | 
 | 2 | +  coq:  | 
 | 3 | +    needs: []  | 
 | 4 | +    runs-on: ubuntu-latest  | 
 | 5 | +    steps:  | 
 | 6 | +    - name: Determine which ref to test  | 
 | 7 | +      run: "if [ ${{ github.event_name }} = \"push\" ]; then\n  echo \"tested_ref=${{\  | 
 | 8 | +        \ github.ref }}\" >> $GITHUB_ENV\nelse\n  merge_commit=$(git ls-remote ${{\  | 
 | 9 | +        \ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\  | 
 | 10 | +        \ | cut -f1)\n  if [ -z \"$merge_commit\" ]; then\n    echo \"tested_ref=refs/pull/${{\  | 
 | 11 | +        \ github.event.number }}/head\" >> $GITHUB_ENV\n  else\n    echo \"tested_ref=refs/pull/${{\  | 
 | 12 | +        \ github.event.number }}/merge\" >> $GITHUB_ENV\n  fi\nfi\n"  | 
 | 13 | +    - name: Git checkout  | 
 | 14 | +      uses: actions/checkout@v2  | 
 | 15 | +      with:  | 
 | 16 | +        fetch-depth: 0  | 
 | 17 | +        ref: ${{ env.tested_ref }}  | 
 | 18 | +    - name: Cachix install  | 
 | 19 | +      uses: cachix/install-nix-action@v12  | 
 | 20 | +      with:  | 
 | 21 | +        nix_path: nixpkgs=channel:nixpkgs-unstable  | 
 | 22 | +    - name: Cachix setup coq  | 
 | 23 | +      uses: cachix/cachix-action@v8  | 
 | 24 | +      with:  | 
 | 25 | +        name: coq  | 
 | 26 | +    - name: Cachix setup coq-community  | 
 | 27 | +      uses: cachix/cachix-action@v8  | 
 | 28 | +      with:  | 
 | 29 | +        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}  | 
 | 30 | +        name: coq-community  | 
 | 31 | +    - name: Cachix setup math-comp  | 
 | 32 | +      uses: cachix/cachix-action@v8  | 
 | 33 | +      with:  | 
 | 34 | +        name: math-comp  | 
 | 35 | +    - id: stepCheck  | 
 | 36 | +      name: Checking presence of CI target coq  | 
 | 37 | +      run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n   --argstr\  | 
 | 38 | +        \ bundle \"default\" --argstr job \"coq\" \\\n   --dry-run 2>&1 > /dev/null)\n\  | 
 | 39 | +        echo ::set-output name=status::$(echo $nb_dry_run | grep \"built:\" | sed\  | 
 | 40 | +        \ \"s/.*/built/\")\n"  | 
 | 41 | +    - if: steps.stepCheck.outputs.status == 'built'  | 
 | 42 | +      name: Building/fetching current CI target  | 
 | 43 | +      run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"  | 
 | 44 | +        --argstr job "coq"  | 
 | 45 | +  coqeal:  | 
 | 46 | +    needs:  | 
 | 47 | +    - coq  | 
 | 48 | +    - paramcoq  | 
 | 49 | +    runs-on: ubuntu-latest  | 
 | 50 | +    steps:  | 
 | 51 | +    - name: Determine which ref to test  | 
 | 52 | +      run: "if [ ${{ github.event_name }} = \"push\" ]; then\n  echo \"tested_ref=${{\  | 
 | 53 | +        \ github.ref }}\" >> $GITHUB_ENV\nelse\n  merge_commit=$(git ls-remote ${{\  | 
 | 54 | +        \ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\  | 
 | 55 | +        \ | cut -f1)\n  if [ -z \"$merge_commit\" ]; then\n    echo \"tested_ref=refs/pull/${{\  | 
 | 56 | +        \ github.event.number }}/head\" >> $GITHUB_ENV\n  else\n    echo \"tested_ref=refs/pull/${{\  | 
 | 57 | +        \ github.event.number }}/merge\" >> $GITHUB_ENV\n  fi\nfi\n"  | 
 | 58 | +    - name: Git checkout  | 
 | 59 | +      uses: actions/checkout@v2  | 
 | 60 | +      with:  | 
 | 61 | +        fetch-depth: 0  | 
 | 62 | +        ref: ${{ env.tested_ref }}  | 
 | 63 | +    - name: Cachix install  | 
 | 64 | +      uses: cachix/install-nix-action@v12  | 
 | 65 | +      with:  | 
 | 66 | +        nix_path: nixpkgs=channel:nixpkgs-unstable  | 
 | 67 | +    - name: Cachix setup coq  | 
 | 68 | +      uses: cachix/cachix-action@v8  | 
 | 69 | +      with:  | 
 | 70 | +        name: coq  | 
 | 71 | +    - name: Cachix setup coq-community  | 
 | 72 | +      uses: cachix/cachix-action@v8  | 
 | 73 | +      with:  | 
 | 74 | +        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}  | 
 | 75 | +        name: coq-community  | 
 | 76 | +    - name: Cachix setup math-comp  | 
 | 77 | +      uses: cachix/cachix-action@v8  | 
 | 78 | +      with:  | 
 | 79 | +        name: math-comp  | 
 | 80 | +    - id: stepCheck  | 
 | 81 | +      name: Checking presence of CI target coqeal  | 
 | 82 | +      run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n   --argstr\  | 
 | 83 | +        \ bundle \"default\" --argstr job \"coqeal\" \\\n   --dry-run 2>&1 > /dev/null)\n\  | 
 | 84 | +        echo ::set-output name=status::$(echo $nb_dry_run | grep \"built:\" | sed\  | 
 | 85 | +        \ \"s/.*/built/\")\n"  | 
 | 86 | +    - if: steps.stepCheck.outputs.status == 'built'  | 
 | 87 | +      name: 'Building/fetching previous CI target: coq'  | 
 | 88 | +      run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"  | 
 | 89 | +        --argstr job "coq"  | 
 | 90 | +    - if: steps.stepCheck.outputs.status == 'built'  | 
 | 91 | +      name: 'Building/fetching previous CI target: paramcoq'  | 
 | 92 | +      run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"  | 
 | 93 | +        --argstr job "paramcoq"  | 
 | 94 | +    - if: steps.stepCheck.outputs.status == 'built'  | 
 | 95 | +      name: Building/fetching current CI target  | 
 | 96 | +      run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"  | 
 | 97 | +        --argstr job "coqeal"  | 
 | 98 | +  paramcoq:  | 
 | 99 | +    needs:  | 
 | 100 | +    - coq  | 
 | 101 | +    runs-on: ubuntu-latest  | 
 | 102 | +    steps:  | 
 | 103 | +    - name: Determine which ref to test  | 
 | 104 | +      run: "if [ ${{ github.event_name }} = \"push\" ]; then\n  echo \"tested_ref=${{\  | 
 | 105 | +        \ github.ref }}\" >> $GITHUB_ENV\nelse\n  merge_commit=$(git ls-remote ${{\  | 
 | 106 | +        \ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\  | 
 | 107 | +        \ | cut -f1)\n  if [ -z \"$merge_commit\" ]; then\n    echo \"tested_ref=refs/pull/${{\  | 
 | 108 | +        \ github.event.number }}/head\" >> $GITHUB_ENV\n  else\n    echo \"tested_ref=refs/pull/${{\  | 
 | 109 | +        \ github.event.number }}/merge\" >> $GITHUB_ENV\n  fi\nfi\n"  | 
 | 110 | +    - name: Git checkout  | 
 | 111 | +      uses: actions/checkout@v2  | 
 | 112 | +      with:  | 
 | 113 | +        fetch-depth: 0  | 
 | 114 | +        ref: ${{ env.tested_ref }}  | 
 | 115 | +    - name: Cachix install  | 
 | 116 | +      uses: cachix/install-nix-action@v12  | 
 | 117 | +      with:  | 
 | 118 | +        nix_path: nixpkgs=channel:nixpkgs-unstable  | 
 | 119 | +    - name: Cachix setup coq  | 
 | 120 | +      uses: cachix/cachix-action@v8  | 
 | 121 | +      with:  | 
 | 122 | +        name: coq  | 
 | 123 | +    - name: Cachix setup coq-community  | 
 | 124 | +      uses: cachix/cachix-action@v8  | 
 | 125 | +      with:  | 
 | 126 | +        authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}  | 
 | 127 | +        name: coq-community  | 
 | 128 | +    - name: Cachix setup math-comp  | 
 | 129 | +      uses: cachix/cachix-action@v8  | 
 | 130 | +      with:  | 
 | 131 | +        name: math-comp  | 
 | 132 | +    - id: stepCheck  | 
 | 133 | +      name: Checking presence of CI target paramcoq  | 
 | 134 | +      run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n   --argstr\  | 
 | 135 | +        \ bundle \"default\" --argstr job \"paramcoq\" \\\n   --dry-run 2>&1 > /dev/null)\n\  | 
 | 136 | +        echo ::set-output name=status::$(echo $nb_dry_run | grep \"built:\" | sed\  | 
 | 137 | +        \ \"s/.*/built/\")\n"  | 
 | 138 | +    - if: steps.stepCheck.outputs.status == 'built'  | 
 | 139 | +      name: 'Building/fetching previous CI target: coq'  | 
 | 140 | +      run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"  | 
 | 141 | +        --argstr job "coq"  | 
 | 142 | +    - if: steps.stepCheck.outputs.status == 'built'  | 
 | 143 | +      name: Building/fetching current CI target  | 
 | 144 | +      run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "default"  | 
 | 145 | +        --argstr job "paramcoq"  | 
 | 146 | +name: Nix CI for bundle default  | 
 | 147 | +'on':  | 
 | 148 | +  pull_request:  | 
 | 149 | +    paths:  | 
 | 150 | +    - .github/workflows/**  | 
 | 151 | +  pull_request_target:  | 
 | 152 | +    types:  | 
 | 153 | +    - opened  | 
 | 154 | +    - synchronize  | 
 | 155 | +    - reopened  | 
 | 156 | +  push:  | 
 | 157 | +    branches:  | 
 | 158 | +    - master  | 
0 commit comments