8
8
command : |
9
9
julia -e 'using Pkg
10
10
11
- println("--- :julia: Instantiating project")
12
- Pkg.develop(; path=pwd())
13
- Pkg.develop(; name="CUDA")
11
+ gpuarrays = pwd()
12
+ gpuarrayscore = joinpath(gpuarrays, "lib", "GPUArraysCore")
13
+ devdir = mktempdir()
14
+ package = joinpath(devdir, "CUDA")
15
+
16
+ println("--- :julia: Installing TestEnv")
17
+ Pkg.activate(; temp=true)
18
+ Pkg.add("TestEnv")
19
+ using TestEnv
20
+
21
+ println("--- :julia: Installing CUDA.jl")
22
+ withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0,
23
+ "JULIA_PKG_DEVDIR" => devdir) do
24
+ Pkg.develop("CUDA")
25
+ Pkg.activate(package)
26
+
27
+ try
28
+ Pkg.develop([PackageSpec(path=gpuarrays), PackageSpec(path=gpuarrayscore)])
29
+ TestEnv.activate()
30
+ catch err
31
+ @error "Could not install CUDA.jl" exception=(err,catch_backtrace())
32
+ exit(3)
33
+ finally
34
+ Pkg.activate(package)
35
+ end
36
+ end
14
37
15
38
println("+++ :julia: Running tests")
16
- Pkg.test("CUDA" ; coverage=true)'
39
+ Pkg.test(; coverage=true)'
17
40
agents :
18
41
queue : " juliagpu"
19
42
cuda : " *"
@@ -27,18 +50,38 @@ steps:
27
50
- JuliaCI/julia-coverage#v1:
28
51
codecov : true
29
52
command : |
30
- julia -e 'using Pkg;
53
+ julia -e 'using Pkg
54
+
55
+ gpuarrays = pwd()
56
+ gpuarrayscore = joinpath(gpuarrays, "lib", "GPUArraysCore")
57
+ devdir = mktempdir()
58
+ package = joinpath(devdir, "oneAPI")
31
59
32
- println("--- :julia: Instantiating project")
33
- Pkg.develop(; path=pwd())
34
- Pkg.develop(; name="oneAPI")
60
+ println("--- :julia: Installing TestEnv")
61
+ Pkg.activate(; temp=true)
62
+ Pkg.add("TestEnv")
63
+ using TestEnv
35
64
36
- println("+++ :julia: Building support library")
37
- include(joinpath(Pkg.devdir(), "oneAPI", "deps", "build_ci.jl"))
38
- Pkg.activate()
65
+ println("--- :julia: Installing oneAPI.jl")
66
+ withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0,
67
+ "JULIA_PKG_DEVDIR" => devdir) do
68
+ Pkg.develop("oneAPI")
69
+ include(joinpath(package, "deps", "build_ci.jl"))
70
+ Pkg.activate(package)
71
+
72
+ try
73
+ Pkg.develop([PackageSpec(path=gpuarrays), PackageSpec(path=gpuarrayscore)])
74
+ TestEnv.activate()
75
+ catch err
76
+ @error "Could not install oneAPI.jl" exception=(err,catch_backtrace())
77
+ exit(3)
78
+ finally
79
+ Pkg.activate(package)
80
+ end
81
+ end
39
82
40
83
println("+++ :julia: Running tests")
41
- Pkg.test("oneAPI" ; coverage=true)'
84
+ Pkg.test(; coverage=true)'
42
85
agents :
43
86
queue : " juliagpu"
44
87
intel : " *"
@@ -52,14 +95,37 @@ steps:
52
95
- JuliaCI/julia-coverage#v1:
53
96
codecov : true
54
97
command : |
55
- julia -e 'using Pkg;
98
+ julia -e 'using Pkg
99
+
100
+ gpuarrays = pwd()
101
+ gpuarrayscore = joinpath(gpuarrays, "lib", "GPUArraysCore")
102
+ devdir = mktempdir()
103
+ package = joinpath(devdir, "Metal")
104
+
105
+ println("--- :julia: Installing TestEnv")
106
+ Pkg.activate(; temp=true)
107
+ Pkg.add("TestEnv")
108
+ using TestEnv
109
+
110
+ println("--- :julia: Installing Metal.jl")
111
+ withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0,
112
+ "JULIA_PKG_DEVDIR" => devdir) do
113
+ Pkg.develop("Metal")
114
+ Pkg.activate(package)
56
115
57
- println("--- :julia: Instantiating project")
58
- Pkg.develop(; path=pwd())
59
- Pkg.develop(; name="Metal")
116
+ try
117
+ Pkg.develop([PackageSpec(path=gpuarrays), PackageSpec(path=gpuarrayscore)])
118
+ TestEnv.activate()
119
+ catch err
120
+ @error "Could not install Metal.jl" exception=(err,catch_backtrace())
121
+ exit(3)
122
+ finally
123
+ Pkg.activate(package)
124
+ end
125
+ end
60
126
61
127
println("+++ :julia: Running tests")
62
- Pkg.test("Metal" ; coverage=true)'
128
+ Pkg.test(; coverage=true)'
63
129
agents :
64
130
queue : " juliaecosystem"
65
131
os : " macos"
0 commit comments