@@ -181,60 +181,6 @@ jobs:
181181 name : Building/fetching current CI target
182182 run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
183183 " coq-master" --argstr job "coq-elpi"
184- coq-elpi-tests-stdlib :
185- needs : []
186- runs-on : ubuntu-latest
187- steps :
188- - name : Determine which commit to initially checkout
189- run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
190- github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
191- }}\" >> $GITHUB_ENV\n fi\n "
192- - name : Git checkout
193- uses : actions/checkout@v4
194- with :
195- fetch-depth : 0
196- ref : ${{ env.target_commit }}
197- - name : Determine which commit to test
198- run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
199- github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
200- }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
201- merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
202- 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
203- \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
204- }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
205- \ fi\n fi\n "
206- - name : Git checkout
207- uses : actions/checkout@v4
208- with :
209- fetch-depth : 0
210- ref : ${{ env.tested_commit }}
211- - name : Cachix install
212- uses : cachix/install-nix-action@v31
213- with :
214- nix_path : nixpkgs=channel:nixpkgs-unstable
215- - name : Cachix setup coq-elpi
216- uses : cachix/cachix-action@v16
217- with :
218- authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
219- extraPullNames : coq, coq-community, math-comp
220- name : coq-elpi
221- - id : stepGetDerivation
222- name : Getting derivation for current job (coq-elpi-tests-stdlib)
223- run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
224- \" coq-master\" --argstr job \" coq-elpi-tests-stdlib\" \\\n --dry-run 2>
225- err > out || (touch fail; true)\n cat out err\n if [ -e fail ]; then echo \" \
226- Error: getting derivation failed\" ; exit 1; fi\n "
227- - id : stepCheck
228- name : Checking presence of CI target for current job
229- run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
230- actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
231- ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
232- \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
233- status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
234- - if : steps.stepCheck.outputs.status != 'fetched'
235- name : Building/fetching current CI target
236- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
237- " coq-master" --argstr job "coq-elpi-tests-stdlib"
238184 coqeal :
239185 needs :
240186 - coq
@@ -2178,6 +2124,70 @@ jobs:
21782124 name : Building/fetching current CI target
21792125 run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
21802126 " coq-master" --argstr job "rocq-elpi-tests"
2127+ rocq-elpi-tests-stdlib :
2128+ needs :
2129+ - rocq-core
2130+ - stdlib
2131+ runs-on : ubuntu-latest
2132+ steps :
2133+ - name : Determine which commit to initially checkout
2134+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{
2135+ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha
2136+ }}\" >> $GITHUB_ENV\n fi\n "
2137+ - name : Git checkout
2138+ uses : actions/checkout@v4
2139+ with :
2140+ fetch-depth : 0
2141+ ref : ${{ env.target_commit }}
2142+ - name : Determine which commit to test
2143+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{
2144+ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{ github.event.repository.html_url
2145+ }} refs/pull/${{ github.event.number }}/merge | cut -f1)\n mergeable=$(git
2146+ merge --no-commit --no-ff ${{ github.event.pull_request.base.sha }} > /dev/null
2147+ 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n if [ -z \" $merge_commit\" \
2148+ \ -o \" x$mergeable\" != \" x0\" ]; then\n echo \" tested_commit=${{ github.event.pull_request.head.sha
2149+ }}\" >> $GITHUB_ENV\n else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n \
2150+ \ fi\n fi\n "
2151+ - name : Git checkout
2152+ uses : actions/checkout@v4
2153+ with :
2154+ fetch-depth : 0
2155+ ref : ${{ env.tested_commit }}
2156+ - name : Cachix install
2157+ uses : cachix/install-nix-action@v31
2158+ with :
2159+ nix_path : nixpkgs=channel:nixpkgs-unstable
2160+ - name : Cachix setup coq-elpi
2161+ uses : cachix/cachix-action@v16
2162+ with :
2163+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
2164+ extraPullNames : coq, coq-community, math-comp
2165+ name : coq-elpi
2166+ - id : stepGetDerivation
2167+ name : Getting derivation for current job (rocq-elpi-tests-stdlib)
2168+ run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
2169+ \" coq-master\" --argstr job \" rocq-elpi-tests-stdlib\" \\\n --dry-run 2>
2170+ err > out || (touch fail; true)\n cat out err\n if [ -e fail ]; then echo \" \
2171+ Error: getting derivation failed\" ; exit 1; fi\n "
2172+ - id : stepCheck
2173+ name : Checking presence of CI target for current job
2174+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
2175+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
2176+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
2177+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
2178+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
2179+ - if : steps.stepCheck.outputs.status != 'fetched'
2180+ name : ' Building/fetching previous CI target: rocq-core'
2181+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2182+ " coq-master" --argstr job "rocq-core"
2183+ - if : steps.stepCheck.outputs.status != 'fetched'
2184+ name : ' Building/fetching previous CI target: stdlib'
2185+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2186+ " coq-master" --argstr job "stdlib"
2187+ - if : steps.stepCheck.outputs.status != 'fetched'
2188+ name : Building/fetching current CI target
2189+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle
2190+ " coq-master" --argstr job "rocq-elpi-tests-stdlib"
21812191 stdlib :
21822192 needs :
21832193 - rocq-core
0 commit comments