File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -59,16 +59,11 @@ jobs:
59
59
${{ runner.os }}-test-
60
60
${{ runner.os }}-
61
61
- uses : julia-actions/julia-buildpkg@v1
62
- env :
63
- # precompiling the package loads LLVMExtra, which we cannot do with LLVM+Asserts
64
- # because we first need to build a local LLVMExtra.
65
- JULIA_PKG_PRECOMPILE : false
66
62
- name : Build libLLVMExtra
67
63
if : ${{ matrix.libLLVMExtra == 'local' }}
68
64
run : |
69
65
julia --project=deps -e 'using Pkg; Pkg.instantiate()'
70
66
julia --project=deps deps/build_local.jl
71
- julia --project -e 'using Pkg; Pkg.precompile()'
72
67
# test
73
68
- name : Run tests
74
69
run : |
Original file line number Diff line number Diff line change @@ -49,3 +49,7 @@ set_preferences!(
49
49
" libLLVMExtra_path" => lib_path;
50
50
force= true ,
51
51
)
52
+
53
+ # Copy the preferences to `test/` as well to work around Pkg.jl#2500
54
+ cp (joinpath (dirname (@__DIR__ ), " LocalPreferences.toml" ),
55
+ joinpath (dirname (@__DIR__ ), " test" , " LocalPreferences.toml" ))
Original file line number Diff line number Diff line change 1
- # HACK: work around Pkg.jl#2500
2
- test_project = Base. active_project ()
3
- preferences_file = joinpath (dirname (@__DIR__ ), " LocalPreferences.toml" )
4
- test_preferences_file = joinpath (dirname (test_project), " LocalPreferences.toml" )
5
- if isfile (preferences_file) && ! isfile (test_preferences_file)
6
- cp (preferences_file, test_preferences_file)
7
- end
8
-
9
1
using LLVM
10
2
using LLVMExtra_jll
11
3
using Test
You can’t perform that action at this time.
0 commit comments