Skip to content

Commit

Permalink
caching
Browse files Browse the repository at this point in the history
  • Loading branch information
SnO2WMaN committed Oct 15, 2024
1 parent 83f9a49 commit f967d22
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,yaml}]
indent_style = space
indent_size = 2
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ jobs:
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Check toolchain version
run: |
elan --version
lake --version
lean --version
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: .lake
key: lake-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}-${{ github.sha }}
restore-keys: lake-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}
- name: Fetch cache
run: lake exe cache get
- name: Build doc-gen4
Expand All @@ -30,9 +41,14 @@ jobs:
Arithmetization:docs \
Incompleteness:docs \
Summary:docs
- name: Save cache
uses: actions/cache/save@v4
with:
path: .lake
key: lake-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}-${{ github.sha }}
- name: Upload documents
uses: actions/upload-pages-artifact@v1
with:
path: .lake/build/doc
path: .lake/build/doc
- name: Deploy
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.lake

# import graph
import_graph.*
import_graph.*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Summary
# Summary
14 changes: 7 additions & 7 deletions lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "68b518c9b352fbee16e6d632adcb7a6d0760e2b7",
"rev": "9b4088ccf0f44ddd7b1132bb1348aef8cf481e12",
"name": "importGraph",
"manifestFile": "lake-manifest.json",
"inputRev": "68b518c9b352fbee16e6d632adcb7a6d0760e2b7",
"inputRev": "main",
"inherited": false,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/mathlib4",
Expand Down Expand Up @@ -105,7 +105,7 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "9148a0a7506099963925cf239c491fcda5ed0044",
"rev": "5e95f4776be5e048364f325c7e9d619bb56fb005",
"name": "MD4Lean",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand All @@ -115,7 +115,7 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "f93115d0209de6db335725dee900d379f40c0317",
"rev": "6d2e06515f1ed1f74208d5a1da3a9cc26c60a7a0",
"name": "UnicodeBasic",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand All @@ -125,7 +125,7 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "bd8747df9ee72fca365efa5bd3bd0d8dcd083b9f",
"rev": "85e1e7143dd4cfa2b551826c27867bada60858e8",
"name": "BibtexQuery",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
Expand All @@ -135,10 +135,10 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "b941c425f6f0f1dc45fe13b850ffa7db1bb20d04",
"rev": "ccb4e97ffb7ad0f9b1852e9669d5e2922f984175",
"name": "«doc-gen4»",
"manifestFile": "lake-manifest.json",
"inputRev": "b941c425f6f0f1dc45fe13b850ffa7db1bb20d04",
"inputRev": "main",
"inherited": false,
"configFile": "lakefile.lean"}],
"name": "Summary",
Expand Down
4 changes: 2 additions & 2 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ require foundation from git "https://github.com/FormalizedFormalLogic/Foundation
require arithmetization from git "https://github.com/FormalizedFormalLogic/Arithmetization" @ "master"
require incompleteness from git "https://github.com/FormalizedFormalLogic/Incompleteness" @ "master"

require importGraph from git "https://github.com/leanprover-community/import-graph" @ "68b518c9b352fbee16e6d632adcb7a6d0760e2b7"
require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "b941c425f6f0f1dc45fe13b850ffa7db1bb20d04"
require importGraph from git "https://github.com/leanprover-community/import-graph" @ "main"
require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main"

package "Summary" where

Expand Down

0 comments on commit f967d22

Please sign in to comment.