@@ -118,7 +118,6 @@ jobs:
118118 coq-elpi :
119119 needs :
120120 - coq
121- - stdlib
122121 runs-on : ubuntu-latest
123122 steps :
124123 - name : Determine which commit to initially checkout
@@ -170,72 +169,10 @@ jobs:
170169 name : ' Building/fetching previous CI target: coq'
171170 run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
172171 --argstr job "coq"
173- - if : steps.stepCheck.outputs.status == 'built'
174- name : ' Building/fetching previous CI target: stdlib'
175- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
176- --argstr job "stdlib"
177172 - if : steps.stepCheck.outputs.status == 'built'
178173 name : Building/fetching current CI target
179174 run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
180175 --argstr job "coq-elpi"
181- coq-elpi-no-stdlib :
182- needs :
183- - coq
184- runs-on : ubuntu-latest
185- steps :
186- - name : Determine which commit to initially checkout
187- run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
188- github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
189- }}\" >> $GITHUB_ENV\n fi\n "
190- - name : Git checkout
191- uses : actions/checkout@v4
192- with :
193- fetch-depth : 0
194- ref : ${{ env.target_commit }}
195- - name : Determine which commit to test
196- run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
197- github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
198- }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
199- merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
200- 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
201- \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
202- }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
203- \ fi\n fi\n "
204- - name : Git checkout
205- uses : actions/checkout@v4
206- with :
207- fetch-depth : 0
208- ref : ${{ env.tested_commit }}
209- - name : Cachix install
210- uses : cachix/install-nix-action@v30
211- with :
212- nix_path : nixpkgs=channel:nixpkgs-unstable
213- - name : Cachix setup coq-elpi
214- uses : cachix/cachix-action@v15
215- with :
216- authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
217- extraPullNames : coq, coq-community, math-comp
218- name : coq-elpi
219- - id : stepGetDerivation
220- name : Getting derivation for current job (coq-elpi-no-stdlib)
221- run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
222- \" coq-master\" --argstr job \" coq-elpi-no-stdlib\" \\\n --dry-run 2> err
223- > out || (touch fail; true)\n "
224- - name : Error reporting
225- run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
226- - name : Failure check
227- run : if [ -e fail ]; then exit 1; else exit 0; fi;
228- - id : stepCheck
229- name : Checking presence of CI target for current job
230- run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
231- - if : steps.stepCheck.outputs.status == 'built'
232- name : ' Building/fetching previous CI target: coq'
233- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
234- --argstr job "coq"
235- - if : steps.stepCheck.outputs.status == 'built'
236- name : Building/fetching current CI target
237- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
238- --argstr job "coq-elpi-no-stdlib"
239176 coq-elpi-tests :
240177 needs :
241178 - coq
0 commit comments