-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from shipengcheng1230/1.6
test 1.6
- Loading branch information
Showing
8 changed files
with
79 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
environment: | ||
matrix: | ||
- julia_version: 1.5 | ||
- julia_version: 1.6 | ||
- julia_version: nightly | ||
|
||
platform: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
name = "GmshTools" | ||
uuid = "82e2f556-b1bd-5f1a-9576-f93c0da5f0ee" | ||
authors = ["Pengcheng Shi"] | ||
version = "0.4.2" | ||
version = "0.5.0" | ||
|
||
[deps] | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Requires = "ae029012-a4dd-5104-9daa-d747884805df" | ||
gmsh_jll = "630162c2-fc9b-58b3-9910-8442a8a132e6" | ||
|
||
[compat] | ||
Requires = "1.0" | ||
julia = "1" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
|
||
[targets] | ||
test = ["Test", "Pkg"] | ||
test = ["Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,50 @@ | ||
using Libdl | ||
using Pkg | ||
# Copied from https://github.com/gridap/GridapGmsh.jl/blob/master/deps/build.jl | ||
# to use the new officially registered Gmsh JLL | ||
|
||
const depsfile = joinpath(@__DIR__, "deps.jl") | ||
gmsh_root = nothing | ||
|
||
const libpath = get(ENV, "GMSH_LIB_PATH", nothing) | ||
|
||
if libpath === nothing | ||
open(depsfile, "w") do io | ||
print(io, | ||
raw""" | ||
# This file is automatically generated | ||
# Do not edit | ||
using Gmsh_SDK_jll | ||
check_deps() = nothing | ||
include(joinpath(dirname(Gmsh_SDK_jll.libgmsh_path), "gmsh.jl")) | ||
""" | ||
) | ||
end | ||
if haskey(ENV,"GMSHROOT") && !isempty(ENV["GMSHROOT"]) | ||
gmsh_root = ENV["GMSHROOT"] | ||
@info """ | ||
Using the gmsh installation found via the GMSHROOT environment variable. | ||
GMSHROOT=$gmsh_root""" | ||
else | ||
# For windows, you must create a link from `gmsh-*.*.dll` to `libgmsh.dll` | ||
libgmsh = find_library("libgmsh", [libpath]) | ||
if isempty(libgmsh) | ||
@static if Sys.iswindows() | ||
@info "You may create a link from `gmsh-*.*.dll` to `libgmsh.dll`." | ||
end | ||
error("libgmsh is not found in $libpath.") | ||
end | ||
|
||
libgmsh_size = filesize(dlpath()) | ||
using gmsh_jll | ||
GMSH_FOUND = gmsh_jll.is_available() | ||
if GMSH_FOUND | ||
gmsh_root = gmsh_jll.artifact_dir | ||
@info """ | ||
Using the gmsh installation installed via BinaryBuilder.""" | ||
end | ||
end | ||
|
||
open(depsfile, "w") do io | ||
println(io, | ||
""" | ||
# This file is automatically generated | ||
# Do not edit | ||
function check_deps() | ||
if libgmsh_size != filesize(Libdl.dlpath(libgmsh_size)) | ||
error("Gmsh library has changed, re-run Pkg.build(\\\"GmshTools\\\")") | ||
end | ||
end | ||
include(joinpath(libpath, "gmsh.jl")) | ||
""" | ||
) | ||
println(io, :(const libgmsh = $libgmsh)) | ||
println(io, :(const libgmsh_size = $libgmsh_size)) | ||
end | ||
GMSH_FOUND = false | ||
if gmsh_root != nothing | ||
gmsh_bin = (Sys.iswindows() ? joinpath(gmsh_root,"bin","gmsh.exe") : | ||
joinpath(gmsh_root,"bin","gmsh")) | ||
if isfile(gmsh_bin) | ||
GMSH_FOUND = true | ||
@info "gmsh binary found in $gmsh_bin" | ||
else | ||
@warn """ | ||
gmsh binary not found in $gmsh_bin | ||
Make sure that GMSHROOT points to a correct gmsh installation""" | ||
end | ||
gmsh_jl = joinpath(gmsh_root,"lib","gmsh.jl") | ||
if isfile(gmsh_jl) | ||
GMSH_FOUND = true | ||
@info "Using the gmsh Julia API found in $gmsh_jl" | ||
else | ||
@warn """ | ||
gmsh Julia API not found in $gmsh_jl | ||
Make sure that you have installed the full gmsh SDK""" | ||
end | ||
end | ||
|
||
open("deps.jl","w") do f | ||
println(f, "# This file is automatically generated") | ||
println(f, "# Do not edit") | ||
println(f) | ||
println(f, :(const GMSH_FOUND = $GMSH_FOUND)) | ||
println(f, :(const gmsh_jl = $gmsh_jl)) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
476f3d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
476f3d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/34391
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: