Skip to content

Commit 34c823f

Browse files
authored
Rework NNlib CI. (#2493)
[only downstream]
1 parent f0ac5eb commit 34c823f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.buildkite/pipeline.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,31 @@ steps:
158158
julia --project -e '
159159
using Pkg
160160
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")
162171
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0) do
163-
Pkg.instantiate()
172+
Pkg.develop("NNlib")
173+
Pkg.activate(nnlib)
164174
165175
try
166-
Pkg.develop("NNlib")
176+
Pkg.develop([PackageSpec(path=cuda), PackageSpec(path=cudnn)])
177+
TestEnv.activate()
167178
catch err
168179
@error "Could not install NNlib" exception=(err,catch_backtrace())
169180
exit(3)
170181
end
171-
Pkg.develop(path=joinpath(pwd(), "lib", "cudnn"))
172182
end
173183
174184
println("+++ :julia: Running tests")
175-
Pkg.test("NNlib"; coverage=true)'
185+
Pkg.test(; coverage=true)'
176186
env:
177187
NNLIB_TEST_CUDA: "true"
178188
NNLIB_TEST_CPU: "false"

0 commit comments

Comments
 (0)