@@ -147,14 +147,25 @@ in parallel.
147
147
project_dir = joinpath(\" $example_dir \" , name)
148
148
isdir(project_dir) || continue
149
149
150
+ build_dir = joinpath(\" $build_dir \" , name)
151
+ run(`mkdir -p \$ build_dir`)
152
+
153
+ for sub_dir in readdir(project_dir)
154
+ abs_path = joinpath(project_dir, sub_dir)
155
+ if isdir(abs_path) && sub_dir == "data"
156
+ @info "copying \$ abs_path to build \$ build_dir"
157
+ run(`cp -r \$ abs_path \$ build_dir`)
158
+ end
159
+ end
160
+
150
161
Pkg.activate(project_dir)
151
162
Pkg.instantiate()
152
163
CondaPkg.resolve()
153
164
154
165
@info "building" project_dir
155
166
Literate.$target (
156
167
joinpath(project_dir, "main.jl"),
157
- joinpath( \" $ build_dir\" , name) ,
168
+ build_dir,
158
169
;execute=$eval
159
170
)
160
171
end
@@ -164,12 +175,6 @@ in parallel.
164
175
# then we run the build in one process
165
176
# so that we can share compile results
166
177
foreach_example () do path
167
- example_dir = splitpath (path)[end ]
168
- for subdir in readdir (path)
169
- fullpath = joinpath (path, subdir)
170
- tutorial_path =
171
- isdir (fullpath) && subdir == " data" && run (` cp -r $fullpath $(joinpath (build_dir, example_dir)) ` )
172
- end
173
178
return dev (path)
174
179
end
175
180
return run (` $(Base. julia_exename ()) --project=$ci_dir -e $script ` )
0 commit comments