Skip to content

Commit

Permalink
add instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Apr 18, 2022
1 parent da04de8 commit 94ff54b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .buildkite/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@ function jll_init_step(NAME, PROJECT, BB_HASH, PROJ_HASH)
export JULIA_PROJECT="${BUILDKITE_BUILD_CHECKOUT_PATH}/.ci"
echo "--- Setup Julia packages"
julia --color=yes -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
cd ${PROJECT}
echo "Generating meta.json..."
echo "--- Generating meta.json..."
julia --compile=min ./build_tarballs.jl --meta-json=${NAME}.meta.json
echo "Initializing JLL package..."
echo "--- Initializing JLL package..."
julia ${BUILDKITE_BUILD_CHECKOUT_PATH}/.ci/jll_init.jl ${NAME}.meta.json
"""

Expand Down Expand Up @@ -84,10 +87,15 @@ function build_step(NAME, PLATFORM, PROJECT, BB_HASH, PROJ_HASH)
export JULIA_PROJECT="${BUILDKITE_BUILD_CHECKOUT_PATH}/.ci"
echo "--- Setup Julia packages"
julia --color=yes -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
# Cleanup temporary things that might have been left-over
echo "--- Cleanup"
./clean_builds.sh
./clean_products.sh
echo "+++ Build"
cd "${PROJECT}"
julia ./build_tarballs.jl --verbose "${PLATFORM}"
"""
Expand Down Expand Up @@ -118,10 +126,13 @@ function register_step(NAME, PROJECT, BB_HASH, PROJ_HASH)
export JULIA_PROJECT="${BUILDKITE_BUILD_CHECKOUT_PATH}/.ci"
echo "--- Setup Julia packages"
julia --color=yes -e 'import Pkg; Pkg.instantiate(); Pkg.precompile()'
cd "${PROJECT}"
echo "Generating meta.json..."
echo "--- Generating meta.json..."
julia --compile=min ./build_tarballs.jl --meta-json=${NAME}.meta.json
echo "Registering ${NAME}..."
echo "--- Registering ${NAME}..."
export BB_HASH PROJ_HASH
julia ${BUILDKITE_BUILD_CHECKOUT_PATH}/.ci/register_package.jl "${NAME}.meta.json" --verbose
"""
Expand Down

0 comments on commit 94ff54b

Please sign in to comment.