@@ -178,6 +178,185 @@ jobs:
178178 name : Building/fetching current CI target
179179 run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
180180 --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"
239+ coq-elpi-tests :
240+ needs :
241+ - coq
242+ runs-on : ubuntu-latest
243+ steps :
244+ - name : Determine which commit to initially checkout
245+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
246+ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
247+ }}\" >> $GITHUB_ENV\n fi\n "
248+ - name : Git checkout
249+ uses : actions/checkout@v4
250+ with :
251+ fetch-depth : 0
252+ ref : ${{ env.target_commit }}
253+ - name : Determine which commit to test
254+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
255+ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
256+ }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
257+ merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
258+ 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
259+ \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
260+ }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
261+ \ fi\n fi\n "
262+ - name : Git checkout
263+ uses : actions/checkout@v4
264+ with :
265+ fetch-depth : 0
266+ ref : ${{ env.tested_commit }}
267+ - name : Cachix install
268+ uses : cachix/install-nix-action@v30
269+ with :
270+ nix_path : nixpkgs=channel:nixpkgs-unstable
271+ - name : Cachix setup coq-elpi
272+ uses : cachix/cachix-action@v15
273+ with :
274+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
275+ extraPullNames : coq, coq-community, math-comp
276+ name : coq-elpi
277+ - id : stepGetDerivation
278+ name : Getting derivation for current job (coq-elpi-tests)
279+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
280+ \" coq-master\" --argstr job \" coq-elpi-tests\" \\\n --dry-run 2> err > out
281+ || (touch fail; true)\n "
282+ - name : Error reporting
283+ run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
284+ - name : Failure check
285+ run : if [ -e fail ]; then exit 1; else exit 0; fi;
286+ - id : stepCheck
287+ name : Checking presence of CI target for current job
288+ run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
289+ - if : steps.stepCheck.outputs.status == 'built'
290+ name : ' Building/fetching previous CI target: coq'
291+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
292+ --argstr job "coq"
293+ - if : steps.stepCheck.outputs.status == 'built'
294+ name : Building/fetching current CI target
295+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
296+ --argstr job "coq-elpi-tests"
297+ coq-elpi-tests-stdlib :
298+ needs :
299+ - coq
300+ - stdlib
301+ runs-on : ubuntu-latest
302+ steps :
303+ - name : Determine which commit to initially checkout
304+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
305+ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
306+ }}\" >> $GITHUB_ENV\n fi\n "
307+ - name : Git checkout
308+ uses : actions/checkout@v4
309+ with :
310+ fetch-depth : 0
311+ ref : ${{ env.target_commit }}
312+ - name : Determine which commit to test
313+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
314+ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
315+ }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
316+ merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
317+ 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
318+ \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
319+ }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
320+ \ fi\n fi\n "
321+ - name : Git checkout
322+ uses : actions/checkout@v4
323+ with :
324+ fetch-depth : 0
325+ ref : ${{ env.tested_commit }}
326+ - name : Cachix install
327+ uses : cachix/install-nix-action@v30
328+ with :
329+ nix_path : nixpkgs=channel:nixpkgs-unstable
330+ - name : Cachix setup coq-elpi
331+ uses : cachix/cachix-action@v15
332+ with :
333+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
334+ extraPullNames : coq, coq-community, math-comp
335+ name : coq-elpi
336+ - id : stepGetDerivation
337+ name : Getting derivation for current job (coq-elpi-tests-stdlib)
338+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
339+ \" coq-master\" --argstr job \" coq-elpi-tests-stdlib\" \\\n --dry-run 2>
340+ err > out || (touch fail; true)\n "
341+ - name : Error reporting
342+ run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
343+ - name : Failure check
344+ run : if [ -e fail ]; then exit 1; else exit 0; fi;
345+ - id : stepCheck
346+ name : Checking presence of CI target for current job
347+ run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
348+ - if : steps.stepCheck.outputs.status == 'built'
349+ name : ' Building/fetching previous CI target: coq'
350+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
351+ --argstr job "coq"
352+ - if : steps.stepCheck.outputs.status == 'built'
353+ name : ' Building/fetching previous CI target: stdlib'
354+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
355+ --argstr job "stdlib"
356+ - if : steps.stepCheck.outputs.status == 'built'
357+ name : Building/fetching current CI target
358+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
359+ --argstr job "coq-elpi-tests-stdlib"
181360 coqeal :
182361 needs :
183362 - coq
0 commit comments