Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: BuildRelease
steps:
- name: Checkout project
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Git LFS
Expand All @@ -47,7 +47,7 @@ jobs:
continue-on-error: true
steps:
- name: Checkout project
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Git LFS
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ moreLinkArgs = ["-L./.lake/packages/LeanCopilot/.lake/build/lib", "-lctranslate2
require LeanCopilot from git "https://github.com/lean-dojo/LeanCopilot.git" @ "LEAN_COPILOT_VERSION"
```

For stable Lean versions (e.g., `v4.21.0`), set `LEAN_COPILOT_VERSION` to be that version. For the latest unstable Lean versions (e.g., `v4.22.0-rc2`), set `LEAN_COPILOT_VERSION` to `main`. In either case, make sure the version is compatible with other dependencies such as mathlib. If your project uses lakefile.toml instead of lakefile.lean, it should include:
For stable Lean versions (e.g., `v4.22.0`), set `LEAN_COPILOT_VERSION` to be that version. For the latest unstable Lean versions (e.g., `v4.23.0-rc1`), set `LEAN_COPILOT_VERSION` to `main`. In either case, make sure the version is compatible with other dependencies such as mathlib. If your project uses lakefile.toml instead of lakefile.lean, it should include:

```toml
[[require]]
Expand Down
8 changes: 4 additions & 4 deletions lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "8f2d76dce940f1364878dd9b7fde299b607a71ba",
"rev": "9f9113462e6732a73a6a980be745ffccf68a682d",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
"inputRev": "9f9113462e6732a73a6a980be745ffccf68a682d",
"inherited": false,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/batteries.git",
"type": "git",
"subDir": null,
"scope": "",
"rev": "94520d8352f759a05132c6d5cfdf723b6ff72dde",
"rev": "dc46fbd846e7baa6e426fbca683f1585aa5a9de9",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inputRev": "dc46fbd846e7baa6e426fbca683f1585aa5a9de9",
"inherited": false,
"configFile": "lakefile.toml"}],
"name": "LeanCopilot",
Expand Down
15 changes: 3 additions & 12 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,6 @@ target libctranslate2 pkg : FilePath := do
logInfo s!"Cloning CTranslate2 from {ct2URL}"
if !(← (pkg.buildDir / "CTranslate2").pathExists) then
let _ ← gitClone ct2URL pkg.buildDir
-- if getOS! == .windows then
-- -- git clone --recursive doesn't work on powershell
-- let _ ← gitClone "https://github.com/jarro2783/cxxopts.git" (pkg.buildDir / "CTranslate2/third_party")
-- let _ ← gitClone "https://github.com/NVIDIA/thrust.git" (pkg.buildDir / "CTranslate2/third_party")
-- let _ ← gitClone "https://github.com/google/googletest.git" (pkg.buildDir / "CTranslate2/third_party")
-- let _ ← gitClone "https://github.com/google/cpu_features.git" (pkg.buildDir / "CTranslate2/third_party")
-- let _ ← gitClone "https://github.com/gabime/spdlog.git" (pkg.buildDir / "CTranslate2/third_party")
-- let _ ← gitClone "https://github.com/google/ruy.git" (pkg.buildDir / "CTranslate2/third_party")
-- let _ ← gitClone "https://github.com/NVIDIA/cutlass.git" (pkg.buildDir / "CTranslate2/third_party")

let ct2Dir := pkg.buildDir / "CTranslate2"
if getOS! == .windows then
Expand All @@ -335,7 +326,7 @@ target libctranslate2 pkg : FilePath := do

copySingleFile (pkg.buildDir / "CTranslate2" / "build" / nameToSharedLib (if getOS! == .windows then "libctranslate2" else "ctranslate2")) dst

-- TODO: Don't hardcode the version "4".
-- [TODO]: Don't hardcode the version "4".
let dst' := pkg.sharedLibDir / (nameToVersionedSharedLib "ctranslate2" "4")
copySingleFile dst dst'

Expand Down Expand Up @@ -431,8 +422,8 @@ extern_lib libleanffi pkg := do
buildStaticLib (pkg.sharedLibDir / name) #[ct2O]


require batteries from git "https://github.com/leanprover-community/batteries.git" @ "main"
require aesop from git "https://github.com/leanprover-community/aesop" @ "master"
require batteries from git "https://github.com/leanprover-community/batteries.git" @ "dc46fbd846e7baa6e426fbca683f1585aa5a9de9"
require aesop from git "https://github.com/leanprover-community/aesop" @ "9f9113462e6732a73a6a980be745ffccf68a682d"

meta if get_config? env = some "dev" then -- dev is so not everyone has to build it
require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main"
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.22.0-rc2
leanprover/lean4:v4.23.0-rc1
Loading