File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,16 @@ steps:
186186
187187 echo "--- Pkg.dev-ing (by path) the local copy of JuliaSyntax"
188188 export JULIA_PKG_PRECOMPILE_AUTO=0
189+ echo "Old JULIA_DEPOT_PATH: ${JULIA_DEPOT_PATH:?}"
190+ # On Windows, the separator is ;
191+ # On other platforms, the separator is :
192+ sep=$(julia -e 'println(Sys.iswindows() ? ";" : ":")')
193+ # We change the depot path from `depot` to `depot:`
194+ # The trailing colon/semicolon makes sure we can re-use the existing stdlib pkgimages,
195+ # instead of needing to re-precompile them
196+ # https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_DEPOT_PATH
197+ export JULIA_DEPOT_PATH="${JULIA_DEPOT_PATH:?}$(sep)"
198+ echo "New JULIA_DEPOT_PATH: ${JULIA_DEPOT_PATH:?}"
189199 julia -e 'import Pkg; pspec = Pkg.PackageSpec(path = "./JuliaSyntax"); Pkg.develop(pspec)'
190200
191201 echo "--- Testing JuliaSyntax on Julia {{matrix.julia_version}}"
You can’t perform that action at this time.
0 commit comments