Skip to content

Commit

Permalink
chore: CI: check for consistent subverso versions in manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Mar 21, 2024
1 parent f3a479d commit 6889f4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
jobSummary: true
args: --base './_out/examples/demosite' --no-progress --offline './_out/examples/demosite/**/*.html'

- name: Check for consistent Subverso versions in all manifests
run: |
echo "Subverso versions:"
find . -name lake-manifest.json -print0 | xargs -0 jq '.packages[] | select(.name == "subverso") | {"file": input_filename, "subverso": .rev}'
find . -name lake-manifest.json -print0 | xargs -0 jq -e -s 'map(.packages[] | select(.name == "subverso").rev) | .[0] as $x | all(.[]; . == $x)'
- name: Install PDF Dependencies
run: sudo apt update && sudo apt install -y pandoc texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-luatex fonts-dejavu

Expand Down
2 changes: 1 addition & 1 deletion examples/website-examples/lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[{"url": "https://github.com/leanprover/subverso.git",
"type": "git",
"subDir": null,
"rev": "fe51c0e6ddc68758f425c901551cd7fddf70913e",
"rev": "771681e14ea506d41aa0c6969ba3a34727d64ab0",
"name": "subverso",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand Down

0 comments on commit 6889f4d

Please sign in to comment.