Skip to content

Commit

Permalink
elan: add proofwidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
timechess committed Jul 3, 2024
1 parent 96c5460 commit 9ecd751
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lean/elan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ pub struct ElanConfig {
pub retain_lean_nightly_versions: usize,
#[structopt(long, default_value = "1")]
pub retain_glean_versions: usize,
#[structopt(long, default_value = "10")]
pub retain_proofwidgets_versions: usize,
}
9 changes: 9 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,14 @@ fn main() {
buffer_path.clone().unwrap(),
true,
);
let proofwidgets_src = stream_pipe::ByteStreamPipe::new(
GitHubRelease::new(
String::from("leanprover-community/ProofWidgets4"),
source.retain_proofwidgets_versions,
),
buffer_path.clone().unwrap(),
true,
);
let lean_org_repo_src = merge_pipe! {
lean4: lean_src,
lean4_nightly: lean_nightly_src,
Expand All @@ -363,6 +371,7 @@ fn main() {
elan: elan_src,
leanprover: lean_org_repo_src,
glean: glean_src,
proofwidgets: proofwidgets_src,
};
let indexed = index_pipe::IndexPipe::new(
unified,
Expand Down

0 comments on commit 9ecd751

Please sign in to comment.