File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -158,21 +158,31 @@ steps:
158
158
julia --project -e '
159
159
using Pkg
160
160
161
- println("--- :julia: Instantiating project")
161
+ cuda = pwd()
162
+ cudnn = joinpath(cuda, "lib", "cudnn")
163
+ nnlib = joinpath(DEPOT_PATH[1], "dev", "NNlib")
164
+
165
+ println("--- :julia: Installing TestEnv")
166
+ Pkg.activate()
167
+ Pkg.add("TestEnv")
168
+ using TestEnv
169
+
170
+ println("--- :julia: Installing NNlib")
162
171
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0) do
163
- Pkg.instantiate()
172
+ Pkg.develop("NNlib")
173
+ Pkg.activate(nnlib)
164
174
165
175
try
166
- Pkg.develop("NNlib")
176
+ Pkg.develop([PackageSpec(path=cuda), PackageSpec(path=cudnn)])
177
+ TestEnv.activate()
167
178
catch err
168
179
@error "Could not install NNlib" exception=(err,catch_backtrace())
169
180
exit(3)
170
181
end
171
- Pkg.develop(path=joinpath(pwd(), "lib", "cudnn"))
172
182
end
173
183
174
184
println("+++ :julia: Running tests")
175
- Pkg.test("NNlib" ; coverage=true)'
185
+ Pkg.test(; coverage=true)'
176
186
env :
177
187
NNLIB_TEST_CUDA : " true"
178
188
NNLIB_TEST_CPU : " false"
You can’t perform that action at this time.
0 commit comments