Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
bootstrap messes with target arch
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigot committed Dec 7, 2021
1 parent c5cea1c commit 92f8730
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
defaults:
run:
shell: bash
env:
MAKEFLAGS: -j 4
jobs:
build_bionic:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -150,7 +148,7 @@ jobs:
env:
COMPILER: "${{ matrix.compiler }}"
CMAKE: "${{ matrix.cmake }}"
MPI`: "${{ matrix.mpi }}"
MPI: "${{ matrix.mpi }}"
LIBS_VERSION: "${{ matrix.libs_version }}"
run: |
set -ex
Expand Down
3 changes: 2 additions & 1 deletion bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ SHELL ["docker-shell"]
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
CMD ["interactive-shell"]

RUN spack install ${SPACK_INSTALL_ARGS} --reuse patchelf target=x86_64 \
RUN spack solve --reuse patchelf target=x86_64 \
&& spack install ${SPACK_INSTALL_ARGS} --reuse patchelf target=x86_64 \
&& spack spec hdf5+mpi \
&& spack reindex \
&& sed 's/target:.*/target: x86_64/' -i /root/.spack/linux/compilers.yaml
1 change: 1 addition & 0 deletions cmake/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ ENV CMAKE=cmake${CMAKE_VERSION}
SHELL ["/usr/local/bin/spack-env", "/bin/bash", "-c"]

RUN set -ex \
&& spack solve --reuse "${CMAKE}%${COMPILER}" target=x86_64 \
&& spack install ${SPACK_INSTALL_ARGS} --reuse "${CMAKE}%${COMPILER}" target=x86_64
3 changes: 2 additions & 1 deletion gcc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ ENV COMPILER=gcc${GCC_VERSION}
SHELL ["/usr/local/bin/spack-env", "/bin/bash", "-c"]

RUN set -ex \
&& spack install ${SPACK_INSTALL_ARGS} --reuse "${COMPILER}" target=x86_64 \
&& spack solve --reuse "${COMPILER}" target=x86_64 ~bootstrap \
&& spack install ${SPACK_INSTALL_ARGS} --reuse "${COMPILER}" target=x86_64 ~bootstrap \
&& spack load ${COMPILER} \
&& spack compiler find \
&& spack unload ${COMPILER} \
Expand Down
1 change: 1 addition & 0 deletions libs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ RUN cd /opt/spack-environment \

RUN cd /opt/spack-environment \
&& spack env activate . \
&& spack solve --reuse \
&& spack install ${SPACK_INSTALL_ARGS} --reuse
1 change: 1 addition & 0 deletions mpi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ ENV MPI=${MPI}
SHELL ["/usr/local/bin/spack-env", "/bin/bash", "-c"]

RUN set -ex \
&& spack solve --reuse "${MPI}%${COMPILER}" "^${CMAKE}" target=x86_64 \
&& spack install ${SPACK_INSTALL_ARGS} --reuse "${MPI}%${COMPILER}" "^${CMAKE}" target=x86_64

0 comments on commit 92f8730

Please sign in to comment.