Skip to content

Commit

Permalink
improve create_sys_image
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Mar 31, 2024
1 parent b8740a4 commit 029afa2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/create_sys_image
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ julia --project -e "using Pkg; using TestEnv; TestEnv.activate(); Pkg.add(\"PyCa
julia --project -e "using Pkg; Pkg.precompile()"
julia --project -e "include(\"./test/create_sys_image.jl\");"
mv kps-image_tmp.so bin/kps-image-${julia_major}.so
julia --project -e "using Pkg; Pkg.precompile()"
julia --project -J bin/kps-image-${julia_major}-${branch}.so -e "using TestEnv; TestEnv.activate(); using ControlPlots, NativeFileDialog; import Plots"
echo "--> 1"
julia --project -e "using Pkg; try; Pkg.precompile(); catch; println(\"Warning...\"); end"
echo "--> 2"
julia --project -J bin/kps-image-${julia_major}.so -e "using ControlPlots, NativeFileDialog"
echo "--> 3"
julia --project -J bin/kps-image-${julia_major}.so -e "try; using Plots; catch; println(\"Warning when precompiling Plots...\"); end"
echo "Successfully created system image!"

0 comments on commit 029afa2

Please sign in to comment.