Skip to content

Commit

Permalink
make release optional
Browse files Browse the repository at this point in the history
  • Loading branch information
yangky11 committed Dec 25, 2024
1 parent 0129cc5 commit 2b0418e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ private def nameToVersionedSharedLib (name : String) (v : String) : String :=

def afterReleaseSync {α : Type} (pkg : Package) (build : SpawnM (Job α)) : FetchM (Job α) := do
if pkg.preferReleaseBuild ∧ pkg.name ≠ (← getRootPackage).name then
(← pkg.gitHubRelease.fetch).bindAsync fun _ _ => build
(← pkg.optGitHubRelease.fetch).bindAsync fun _ _ => build
else
build


def afterReleaseAsync {α : Type} (pkg : Package) (build : JobM α) : FetchM (Job α) := do
if pkg.preferReleaseBuild ∧ pkg.name ≠ (← getRootPackage).name then
(← pkg.gitHubRelease.fetch).bindSync fun _ _ => build
(← pkg.optGitHubRelease.fetch).bindSync fun _ _ => build
else
Job.async build

Expand Down

0 comments on commit 2b0418e

Please sign in to comment.