Skip to content

Commit 2eca8af

Browse files
committed
merge upstream
2 parents 5518032 + 72a0444 commit 2eca8af

4,172 files changed

Lines changed: 36091 additions & 16867 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/get-mathlib-ci/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
# Default pinned commit used by workflows unless they explicitly override.
1111
# Update this ref as needed to pick up changes to mathlib-ci scripts
1212
# This is also updated automatically by .github/workflows/update_dependencies.yml
13-
default: 78f34ded6a5f5aa11ea5b7c3120fe5d8422db1da
13+
default: 25dc8581f75d1088c01a5b7e27b7480706c6fa43
1414
path:
1515
description: Checkout destination path.
1616
required: false

.github/workflows/build_template.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
223223
- name: validate lake-manifest.json inputRevs
224224
# Only enforce this on the main mathlib4 repository, not on nightly-testing
225-
if: github.repository == 'leanprover-community/mathlib4'
225+
if: github.repository == 'leanprover-community/mathlib4' && github.ref_name != 'nightly-testing'
226226
shell: bash
227227
run: |
228228
cd pr-branch
@@ -733,17 +733,36 @@ jobs:
733733
run: |
734734
lake exe graph
735735
736+
- name: Checkout local actions
737+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
738+
with:
739+
ref: ${{ github.workflow_sha }}
740+
fetch-depth: 1
741+
sparse-checkout: .github/actions
742+
path: workflow-actions
743+
744+
- name: Get mathlib-ci
745+
uses: ./workflow-actions/.github/actions/get-mathlib-ci
746+
747+
- name: dump declarations and transitive-import counts
748+
run: |
749+
lake env lean --run "${CI_SCRIPTS_DIR}/pr_summary/dumpReasonableDecls.lean" \
750+
--out decls.txt --imports-out imports.json Mathlib
751+
736752
- name: upload the import graph
737753
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
738754
with:
739755
name: import-graph
740-
path: import_graph.dot
741-
## the default is 90, but we build often, so unless there's a reason
742-
## to care about old copies in the future, just say 7 days for now
743-
retention-days: 7
756+
path: |
757+
import_graph.dot
758+
decls.txt
759+
imports.json
760+
## Master pushes: 90 days, so later PRs forked from these commits
761+
## can consume the dumps from the artifact. Other branches: 7 days.
762+
retention-days: ${{ github.ref == 'refs/heads/master' && '90' || '7' }}
744763

745764
- name: clean up the import graph file
746-
run: rm import_graph.dot
765+
run: rm -f import_graph.dot decls.txt imports.json
747766

748767
- name: check all scripts build successfully
749768
run: |

0 commit comments

Comments
 (0)