Skip to content

Commit

Permalink
Merge branch 'master' into pr/add-compile-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroripper authored Aug 28, 2024
2 parents 2c82eda + 0a66d5f commit 9c44a17
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "PSRContinuousDeployment"
uuid = "f0087d4c-ff99-426e-93c9-09c1a88911f9"
version = "0.8.0"
version = "0.8.1"

[deps]
AWS = "fbe9abb3-538b-5e4e-ba9e-bc94f4f92ebc"
Expand Down
1 change: 0 additions & 1 deletion format/.gitignore

This file was deleted.

41 changes: 23 additions & 18 deletions src/compile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,31 @@ function compile(
Log.info("COMPILE: memory total $total_memory MB")
end

PackageCompiler.create_app(
package_path,
build_path,
executables = executables,
precompile_execution_file = precompile_path,
incremental = false,
filter_stdlibs = filter_stdlibs,
force = true,
include_lazy_artifacts = include_lazy_artifacts,
include_transitive_dependencies = include_transitive_dependencies,
sysimage_build_args = `--strip-metadata --strip-ir --compile=all`,
kwargs...,
)
if !skip_version_jl
PackageCompiler.create_app(
package_path,
build_path,
executables = executables,
precompile_execution_file = precompile_path,
incremental = false,
filter_stdlibs = filter_stdlibs,
force = true,
include_lazy_artifacts = include_lazy_artifacts,
include_transitive_dependencies = include_transitive_dependencies,
sysimage_build_args = `--strip-metadata --strip-ir --compile=all`,
kwargs...,
)

if !skip_version_jl
Log.info("COMPILE: Cleaning version.jl")
clean_version_jl(src_path)

Log.info("COMPILE: Creating $target.ver")
open(joinpath(bin_path, "$target.ver"), "w") do io
writeln(io, sha1)
return nothing
end
end

Log.info("COMPILE: Copying additional files")
for file_path in additional_files_path
copy(dirname(file_path), bin_path, basename(file_path))
Expand All @@ -97,10 +97,15 @@ function compile(
open(joinpath(bin_path, "Project.toml"), "w") do io
writeln(io, "name = \"$target\"")
writeln(io, "version = \"$version\"")
return nothing
end

Log.info("COMPILE: Removing julia.exe")
rm(joinpath(bin_path, "julia.exe"), force = true)
Log.info("COMPILE: Removing julia")
if Sys.iswindows()
rm(joinpath(bin_path, "julia.exe"), force = true)
elseif Sys.islinux()
rm(joinpath(bin_path, "julia"), force = true)
end

Log.info("COMPILE: Success")
touch(joinpath(compile_path, "build.ok"))
Expand Down
1 change: 0 additions & 1 deletion test/Example.jl/src/main.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
function main(args::Vector{String})

println("Example.jl")

return nothing
Expand Down
1 change: 0 additions & 1 deletion test/Example.jl/test/runtests.jl

This file was deleted.

4 changes: 1 addition & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ using PSRContinuousDeployment

using Test

const ID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

function testall()
package_path = joinpath(@__DIR__, "Example.jl")
database_path = joinpath(package_path, "database")
Expand All @@ -27,4 +25,4 @@ function testall()
return 0
end

testall()
testall()

0 comments on commit 9c44a17

Please sign in to comment.