55 - cron : ' 0 5 * * 1' # Run at 05:00 UTC every Monday
66 workflow_dispatch : # Allow manual triggering
77
8+ env :
9+ CSLIB : cslib
10+
811jobs :
912 weekly-lints :
1013 name : Weekly Linting
1114 runs-on : ubuntu-latest
1215 if : github.repository == 'leanprover/cslib'
1316 steps :
17+ - name : Checkout Mathlib actions
18+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+ with :
20+ fetch-depth : 1
21+ repository : leanprover-community/mathlib4
22+ sparse-checkout : .github/actions
23+ path : workflow-actions
24+
25+ - name : Get mathlib-ci
26+ uses : ./workflow-actions/.github/actions/get-mathlib-ci
27+
1428 - uses : actions/checkout@v4
1529 with :
16- ref : main
30+ path : ${{ env.CSLIB }}
1731
1832 - name : Enable weekly linters
33+ working-directory : ${{ github.workspace }}/${{ env.CSLIB }}
1934 run : |
2035 # Add the mergeWithGrind linter back for this run
21- sed -i '/^\[leanOptions\]/a weak.linter.tacticAnalysis.mergeWithGrind = true' lakefile.toml
36+ sed -i '/^\[leanOptions\]/a weak.linter.weeklyLintSet = true' lakefile.toml
2237
2338 # Show what changed
2439 git diff lakefile.toml
@@ -29,17 +44,21 @@ jobs:
2944 auto-config : false
3045 use-github-cache : true
3146 use-mathlib-cache : true
47+ lake-package-directory : ${{ env.CSLIB }}
3248
3349 - name : Build with weekly linters
3450 id : build
51+ working-directory : ${{ github.workspace }}/${{ env.CSLIB }}
3552 continue-on-error : true
3653 run : |
3754 lean_outfile=$(mktemp)
3855 (lake build || true) 2>&1 | tee "${lean_outfile}"
3956
40- # Generate report for Zulip
41- bash scripts/weekly_lint_report.sh "${lean_outfile}" \
42- "${{ github.sha }}" "${{ github.repository }}" "${{ github.run_id }}" > "${GITHUB_OUTPUT}"
57+ # Process output for posting to Zulip
58+ SHA=${{ github.sha }} \
59+ REPO=${{ github.repository }} \
60+ RUN_ID=${{ github.run_id }} \
61+ "${CI_SCRIPTS_DIR}/reporting/zulip_build_report.sh" "${lean_outfile}" > "${GITHUB_OUTPUT}"
4362
4463 - name : Post output to Zulip
4564 uses : zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5
0 commit comments