Skip to content

Commit

Permalink
add sysimage and app scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlabayle committed May 23, 2024
1 parent 19825c9 commit f0c16b3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deps/build_app.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using PackageCompiler
PackageCompiler.create_app(".", "targene-simulation",
executables = ["targene-simulation" => "julia_main"],
precompile_execution_file="deps/execute.jl",
include_lazy_artifacts=true
)
7 changes: 7 additions & 0 deletions deps/build_sysimage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using PackageCompiler
PackageCompiler.create_sysimage(
["Simulations"],
cpu_target="generic",
sysimage_path="Simulations.so",
precompile_execution_file="deps/execute.jl",
)
7 changes: 7 additions & 0 deletions deps/execute.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Simulations

@info "Running precompilation script."
# Run workload
TEST_DIR = joinpath(pkgdir(Simulations), "test")
push!(LOAD_PATH, TEST_DIR)
include(joinpath(TEST_DIR, "runtests.jl"))
1 change: 1 addition & 0 deletions targene-simulation.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
using PopGenEstimatorComparison; PopGenEstimatorComparison.julia_main()

0 comments on commit f0c16b3

Please sign in to comment.