Skip to content
Merged
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
20 changes: 10 additions & 10 deletions anneal/tools/build-prebuilt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,16 @@ lake exe cache get

# Force precompilation by unsetting CI environment variable.
# This ensures that shared libraries required for plugin loading are generated.
CI="" lake build Aeneas
# Remove tests from AeneasMeta to avoid users compiling them
rm -f AeneasMeta/Async/Test.lean
rm -f AeneasMeta/Async/TestTactics.lean
# Remove imports of these tests from Async.lean
sed '/import AeneasMeta.Async.Test/d' AeneasMeta/Async.lean > AeneasMeta/Async.lean.tmp && mv AeneasMeta/Async.lean.tmp AeneasMeta/Async.lean

# Remove Mathlib tests to keep the artifact small
rm -rf .lake/packages/mathlib/MathlibTest

CI="" lake build

# Generate the dependency graph
lake exe graph imports.dot --to Aeneas,Aeneas.Std.Core,Aeneas.Std.WP,Aeneas.Tactic.Solver.ScalarTac,Aeneas.Std.Scalar.Core --include-deps
Expand All @@ -128,15 +137,6 @@ python3 ../../../tools/prune_mathlib.py imports.dot .lake/packages/mathlib
# Clean up the graph file
rm imports.dot

# Remove tests from AeneasMeta to avoid users compiling them
rm -f AeneasMeta/Async/Test.lean
rm -f AeneasMeta/Async/TestTactics.lean
# Remove imports of these tests from Async.lean
sed '/import AeneasMeta.Async.Test/d' AeneasMeta/Async.lean > AeneasMeta/Async.lean.tmp && mv AeneasMeta/Async.lean.tmp AeneasMeta/Async.lean

# Remove Mathlib tests to keep the artifact small
rm -rf .lake/packages/mathlib/MathlibTest

cd ../.. # Back to dist_staging

# Repackage the artifact.
Expand Down
Loading