@@ -1325,6 +1325,53 @@ jobs:
1325
1325
name : Building/fetching current CI target
1326
1326
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
1327
1327
--argstr job "coq-lsp"
1328
+ coq-performance-tests :
1329
+ needs : []
1330
+ runs-on : ubuntu-latest
1331
+ steps :
1332
+ - name : Determine which commit to initially checkout
1333
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" target_commit=${{\
1334
+ \ github.sha }}\" >> $GITHUB_ENV\n else\n echo \" target_commit=${{ github.event.pull_request.head.sha\
1335
+ \ }}\" >> $GITHUB_ENV\n fi\n "
1336
+ - name : Git checkout
1337
+ uses : actions/checkout@v3
1338
+ with :
1339
+ fetch-depth : 0
1340
+ ref : ${{ env.target_commit }}
1341
+ - name : Determine which commit to test
1342
+ run : " if [ ${{ github.event_name }} = \" push\" ]; then\n echo \" tested_commit=${{\
1343
+ \ github.sha }}\" >> $GITHUB_ENV\n else\n merge_commit=$(git ls-remote ${{\
1344
+ \ github.event.repository.html_url }} refs/pull/${{ github.event.number }}/merge\
1345
+ \ | cut -f1)\n mergeable=$(git merge --no-commit --no-ff ${{ github.event.pull_request.base.sha\
1346
+ \ }} > /dev/null 2>&1; echo $?; git merge --abort > /dev/null 2>&1 || true)\n \
1347
+ \ if [ -z \" $merge_commit\" -o \" x$mergeable\" != \" x0\" ]; then\n echo\
1348
+ \ \" tested_commit=${{ github.event.pull_request.head.sha }}\" >> $GITHUB_ENV\n \
1349
+ \ else\n echo \" tested_commit=$merge_commit\" >> $GITHUB_ENV\n fi\n fi\n "
1350
+ - name : Git checkout
1351
+ uses : actions/checkout@v3
1352
+ with :
1353
+ fetch-depth : 0
1354
+ ref : ${{ env.tested_commit }}
1355
+ - name : Cachix install
1356
+ uses : cachix/install-nix-action@v27
1357
+ with :
1358
+ nix_path : nixpkgs=channel:nixpkgs-unstable
1359
+ - name : Cachix setup coq-community
1360
+ uses : cachix/cachix-action@v15
1361
+ with :
1362
+ authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
1363
+ extraPullNames : coq, math-comp
1364
+ name : coq-community
1365
+ - id : stepCheck
1366
+ name : Checking presence of CI target coq-performance-tests
1367
+ run : " nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr\
1368
+ \ bundle \" coq-master\" --argstr job \" coq-performance-tests\" \\\n --dry-run\
1369
+ \ 2>&1 > /dev/null)\n echo $nb_dry_run\n echo status=$(echo $nb_dry_run | grep\
1370
+ \ \" built:\" | sed \" s/.*/built/\" ) >> $GITHUB_OUTPUT\n "
1371
+ - if : steps.stepCheck.outputs.status == 'built'
1372
+ name : Building/fetching current CI target
1373
+ run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "coq-master"
1374
+ --argstr job "coq-performance-tests"
1328
1375
coq-tools :
1329
1376
needs :
1330
1377
- coq
0 commit comments