diff --git a/.github/actions/upstream-test/action.yml b/.github/actions/upstream-test/action.yml index 26802f269..76e251b43 100644 --- a/.github/actions/upstream-test/action.yml +++ b/.github/actions/upstream-test/action.yml @@ -20,7 +20,7 @@ inputs: hdf5_version: description: Version of HDF5 required: false - default: 1.14.3 + default: hdf5_1_14_3 moab_version: description: Version of MOAB required: false diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml index 2a23b7c4a..155f710ac 100644 --- a/.github/workflows/docker_publish.yml +++ b/.github/workflows/docker_publish.yml @@ -23,7 +23,7 @@ jobs: clang, ] hdf5_version : [ - 1.14.3, + hdf5_1_14_3, ] moab_version : [ 5.4.1, @@ -31,8 +31,8 @@ jobs: ] geant4_version : [ off, - 10.7.4, - 11.1.2 + v10.7.4, + v11.1.2 ] double_down_version : [ off, @@ -105,7 +105,7 @@ jobs: clang, ] hdf5_version : [ - 1.14.3, + hdf5_1_14_3, ] moab_version : [ 5.4.1, @@ -113,8 +113,8 @@ jobs: ] geant4_version : [ off, - 10.7.4, - 11.1.2 + v10.7.4, + v11.1.2 ] double_down_version : [ off, diff --git a/.github/workflows/linux_upstream_test_geant4.yml b/.github/workflows/linux_upstream_test_geant4.yml index 514351067..ddc252bc9 100644 --- a/.github/workflows/linux_upstream_test_geant4.yml +++ b/.github/workflows/linux_upstream_test_geant4.yml @@ -1,4 +1,4 @@ -name: Test against newer Geant4 on PR merge +name: Test against Geant4 development branch (master) on PR merge on: # allows us to run workflows manually @@ -27,4 +27,4 @@ jobs: uses: ./.github/actions/upstream-test with: token: ${{ secrets.GITHUB_TOKEN }} - geant_version: 11.1.2 + geant_version: master diff --git a/.github/workflows/linux_upstream_test_hdf5.yml b/.github/workflows/linux_upstream_test_hdf5.yml index d31707d3d..af0a9eca4 100644 --- a/.github/workflows/linux_upstream_test_hdf5.yml +++ b/.github/workflows/linux_upstream_test_hdf5.yml @@ -1,4 +1,4 @@ -name: Test against newer hdf5 on PR merge +name: Test against HDF5 development branch on PR merge on: # allows us to run workflows manually @@ -28,4 +28,4 @@ jobs: uses: ./.github/actions/upstream-test with: token: ${{ secrets.GITHUB_TOKEN }} - hdf5_version: 1.14.3 + hdf5_version: develop diff --git a/CI/Dockerfile b/CI/Dockerfile index 336cf927c..72c6aa844 100644 --- a/CI/Dockerfile +++ b/CI/Dockerfile @@ -8,9 +8,9 @@ ARG UBUNTU_VERSION=22.04 ARG HDF5_VERSION=hdf5_1_14_3 ARG MOAB_VERSION=5.5.1 # Setting GEANT4_VERSION=off will disable GEANT4 build -ARG GEANT4_VERSION=v11.1.2 +ARG GEANT4_VERSION=off # Setting DOUBLE_DOWN_VERSION=off will disable DOUBLE_DOWN build -ARG DOUBLE_DOWN_VERSION=v1.1.0 +ARG DOUBLE_DOWN_VERSION=off # Setting DOUBLE_DOWN_VERSION=off will disable EMBREE build ARG EMBREE_VERSION=v4.0.1 @@ -51,17 +51,17 @@ ARG INSTALL_DIR ENV BUILD_DIR=${BUILD_DIR} ENV INSTALL_DIR=${INSTALL_DIR} -FROM base as compiler-gcc +FROM base AS compiler-gcc ENV CC=gcc ENV CXX=g++ -FROM base as compiler-clang +FROM base AS compiler-clang ENV CC=clang ENV CXX=clang++ -FROM compiler-${COMPILER} as external_deps +FROM compiler-${COMPILER} AS external_deps # accessing gloabl ARGs in build stage ARG INSTALL_DIR @@ -204,7 +204,7 @@ RUN if [ "${DOUBLE_DOWN_VERSION}" != "off" ]; then \ fi -FROM moab as dagmc +FROM moab AS dagmc # accessing gloabl ARGs in build stage ARG INSTALL_DIR @@ -243,7 +243,7 @@ RUN mkdir -p ${DAGMC_BUILD_DIR}/build && \ make install -FROM dagmc as dagmc_test +FROM dagmc AS dagmc_test ENV DAGMC_BUILD_DIR=${BUILD_DIR}/dagmc ENV DAGMC_INSTALL_DIR=${INSTALL_DIR}/dagmc @@ -261,3 +261,19 @@ RUN cd ${DAGMC_BUILD_DIR}/cmake/test_config && \ cmake . -DDAGMC_ROOT=${DAGMC_INSTALL_DIR} && \ CTEST_OUTPUT_ON_FAILURE=1 make all test +FROM scratch AS binaries + +ARG INSTALL_DIR + +COPY --from=dagmc_test ${INSTALL_DIR} ${INSTALL_DIR} + +ENV PATH=${DAGMC_INSTALL_DIR}/bin:$PATH +ENV PATH=${MOAB_INSTALL_DIR}/bin:$PATH +ENV PATH=${EMBREE_INSTALL_DIR}/bin:$PATH +ENV PATH=${DOUBLE_DOWN_INSTALL_DIR}/bin:$PATH +ENV PATH=${HDF5_INSTALL_DIR}/bin:$PATH +ENV PATH=${GEANT4_INSTALL_DIR}/bin:$PATH + +WORKDIR ${INSTALL_DIR} + +ENTRYPOINT ["/bin/bash"]