File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 60
60
os : windows-latest
61
61
arch : x64
62
62
p4est_test : P4EST_JLL_NON_MPI_PRE_GENERATED_BINDINGS
63
+ # Additional tests on Julia v1.7
64
+ - version : ' ^1.7.0-0'
65
+ os : ubuntu-latest
66
+ arch : x64
67
+ p4est_test : P4EST_JLL_NON_MPI_PRE_GENERATED_BINDINGS
68
+ - version : ' ^1.7.0-0'
69
+ os : macOS-latest
70
+ arch : x64
71
+ p4est_test : P4EST_JLL_NON_MPI_PRE_GENERATED_BINDINGS
72
+ - version : ' ^1.7.0-0'
73
+ os : windows-latest
74
+ arch : x64
75
+ p4est_test : P4EST_JLL_NON_MPI_PRE_GENERATED_BINDINGS
63
76
steps :
64
77
- uses : actions/checkout@v2
65
78
- name : Set p4est release to run tests against
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ functions of the underlying p4est library. You can force the build script to
34
34
re-generate the bindings by setting the environment variable
35
35
` JULIA_P4EST_GENERATE_BINDINGS ` to a non-empty string.
36
36
37
+ * Note: Currently, ` P4est.jl ` can only be used with pre-generated bindings on
38
+ Julia v1.7. See [ issue #39 ] ( https://github.com/trixi-framework/P4est.jl/issues/39 )
39
+ for further discussions.*
40
+
37
41
In addition, when ` JULIA_P4EST_GENERATE_BINDINGS ` is non-empty you can also
38
42
configure P4est.jl to use a custom build of p4est. For this, set the following
39
43
environment variables and build P4est.jl again afterwards:
Original file line number Diff line number Diff line change 1
1
[deps ]
2
- CBindingGen = " 308a6e0c-0495-45e1-b1ab-67fb455a0d77"
3
2
Libdl = " 8f399da3-3557-5675-b5ff-fb832c97cbdb"
4
3
MPI = " da04e1cc-30fd-572f-bb4f-1f8673147195"
5
4
P4est_jll = " 6b5a15aa-cf52-5330-8376-5e5d90283449"
6
5
Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
7
6
8
7
[compat ]
9
- CBindingGen = " 0.4"
10
8
MPI = " 0.15, 0.16"
11
9
P4est_jll = " ~2.3.1"
Original file line number Diff line number Diff line change 1
- using CBindingGen
2
1
using Libdl
3
2
using MPI
4
3
import Pkg. TOML
@@ -80,6 +79,17 @@ if isempty(config["p4est_generate_bindings"])
80
79
const pre_generated_bindings_filename = joinpath (artifact " libp4est" , " libp4est.jl" )
81
80
cp (pre_generated_bindings_filename, bindings_filename, force= true )
82
81
else
82
+ # Install CBindingGen locally and undo the modifications of Project.toml afterwards.
83
+ # This allows us to work around limitations of CBindingGen.jl on Julia v1.7
84
+ # while still being able to use the pre-generated bindings (but only them).
85
+ using Pkg
86
+ project_file = joinpath (@__DIR__ , " Project.toml" )
87
+ project_backup = joinpath (@__DIR__ , " Project.toml.backup" )
88
+ cp (project_file, project_backup)
89
+ Pkg. add (PackageSpec (" CBindingGen" , Base. UUID (" 308a6e0c-0495-45e1-b1ab-67fb455a0d77" ), v " 0.4.5" ))
90
+ using CBindingGen
91
+ mv (project_backup, project_file, force= true )
92
+
83
93
# Step 2: Choose p4est library according to the settings
84
94
p4est_library = " "
85
95
if ! isempty (config[" p4est_library" ])
You can’t perform that action at this time.
0 commit comments