Skip to content
Snippets Groups Projects
Commit 51fb02cd authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: make sure epic-main is current

parent 7d9d792d
Branches
Tags
1 merge request!911fix: make sure epic-main is current
Pipeline #92971 failed
......@@ -9,6 +9,7 @@ variables:
## note: nightly builds will always use the master/main branch
EDM4EIC_VERSION: ""
EICRECON_VERSION: ""
EPIC_VERSION: ""
JUGGLER_VERSION: ""
## Local registry
......@@ -366,11 +367,13 @@ jug_dev:
${IF_BUILD_DEFAULT:+
${EDM4EIC_VERSION:+--build-arg EDM4EIC_VERSION=${EDM4EIC_VERSION}}
${EICRECON_VERSION:+--build-arg EICRECON_VERSION=${EICRECON_VERSION}}
${EPIC_VERSION:+--build-arg EPIC_VERSION=${EPIC_VERSION}}
${JUGGLER_VERSION:+--build-arg JUGGLER_VERSION=${JUGGLER_VERSION}}
}
${IF_BUILD_NIGHTLY:+
--build-arg EDM4EIC_VERSION=main
--build-arg EICRECON_VERSION=main
--build-arg EPIC_VERSION=main
--build-arg JUGGLER_VERSION=main
}
--build-arg ENV=${ENV}
......
......@@ -171,9 +171,11 @@ EOF
## Note: these default versions are just the very first commit.
ARG EDM4EIC_VERSION="8aeb507f93a93257c99985efbce0ec1371e0b331"
ARG EICRECON_VERSION="28108da4a1e8919a05dfdb5f11e114800a2cbe96"
ARG EPIC_VERSION="c1827f05430b2051df8a0b421db1cbab87165e0b"
ARG JUGGLER_VERSION="df87bf1f8643afa8e80bece9d36d6dc26dfe8132"
ADD https://api.github.com/repos/eic/edm4eic/commits/${EDM4EIC_VERSION} /tmp/edm4eic.json
ADD https://api.github.com/repos/eic/eicrecon/commits/${EICRECON_VERSION} /tmp/eicrecon.json
ADD https://api.github.com/repos/eic/epic/commits/${EPIC_VERSION} /tmp/epic.json
ADD https://api.github.com/repos/eic/juggler/commits/${JUGGLER_VERSION} /tmp/juggler.json
RUN --mount=type=cache,target=/ccache,id=${TARGETPLATFORM} \
--mount=type=cache,target=/var/cache/spack \
......@@ -192,6 +194,12 @@ if [ "${EICRECON_VERSION}" != "28108da4a1e8919a05dfdb5f11e114800a2cbe96" ] ; the
sed -i "/# EICRECON_VERSION$/ s/@[^\s']*/@git.${EICRECON_VERSION}=main/" /opt/spack-environment/packages.yaml
spack deconcretize -y --all eicrecon
fi
if [ "${EPIC_VERSION}" != "c1827f05430b2051df8a0b421db1cbab87165e0b" ] ; then
export EPIC_VERSION=$(jq -r .sha /tmp/epic.json)
sed -i "/# EPIC_VERSION$/ s/epic\s/epic@git.${EPIC_VERSION}=main /" /opt/spack-environment/${ENV}/spack.yaml
sed -i "/# EPIC_VERSION$/ s/epic@main\s/epic@git.${EPIC_VERSION}=main /" /opt/spack-environment/${ENV}/spack.yaml
spack deconcretize -y --all epic
fi
if [ "${JUGGLER_VERSION}" != "df87bf1f8643afa8e80bece9d36d6dc26dfe8132" ] ; then
export JUGGLER_VERSION=$(jq -r .sha /tmp/juggler.json)
sed -i "/# JUGGLER_VERSION$/ s/@[^\s']*/@git.${JUGGLER_VERSION}=main/" /opt/spack-environment/packages.yaml
......
......@@ -12,7 +12,7 @@ spack:
- edm4eic build_type=Debug
- edm4hep build_type=Debug
- eicrecon build_type=Debug
- epic build_type=Debug
- epic build_type=Debug # EPIC_VERSION
- gdb
- irt build_type=Debug
- jana2 build_type=Debug
......
......@@ -27,7 +27,7 @@ spack:
- eicrecon
- eigen
- emacs
- epic@main
- epic@main # EPIC_VERSION
- epic@23.10.0
- epic@23.11.0
- epic@23.12.0
......
......@@ -10,7 +10,7 @@ spack:
- dd4hep -ddeve
- edm4eic
- eicrecon
- epic
- epic # EPIC_VERSION
- fastjet
- fjcontrib
- gaudi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment