Skip to content

Commit

Permalink
add restore in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Oct 11, 2024
1 parent 0797988 commit bf8104d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/smi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,27 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
)
C.run(cmd)

# NOTE This isn't necessarily needed, but the lockfile processing isn't
# otherwise transparent in the build output
if C.is_ci():
cmd = (
"dotnet",
"restore",
"-warnaserror",
"--use-current-runtime",
"--nologo",
"--locked-mode",
"--force",
)
C.run(cmd)

cmd = (
"dotnet",
"build",
"-warnaserror",
"--use-current-runtime",
"--configuration", args.configuration,
"--no-restore" if C.is_ci() else "",
"--verbosity", "quiet",
"--nologo",
)
Expand Down

0 comments on commit bf8104d

Please sign in to comment.