diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 9aa25943f..8ba3d7f4b 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -20,23 +20,45 @@ jobs: mpi: mpich gpu: none - - compiler: gcc - mpi: mpich - gpu: cuda + # - compiler: gcc + # mpi: mpich + # gpu: cuda - - compiler: gcc - mpi: mpich - gpu: rocm + # - compiler: gcc + # mpi: mpich + # gpu: rocm runs-on: palace_ubuntu-latest_16-core steps: - uses: actions/checkout@v4 + - name: Configure Open MPI + if: matrix.mpi == 'openmpi' + run: | + sudo apt-get install -y openmpi-bin libopenmpi-dev + - name: Configure MPICH if: matrix.mpi == 'mpich' run: | sudo apt-get install -y mpich libmpich-dev + - name: Configure Intel MPI + if: matrix.mpi == 'intelmpi' + uses: mpi4py/setup-mpi@v1 + with: + mpi: ${{ matrix.mpi }} + + - name: Configure Clang compiler + if: matrix.compiler == 'clang' + run: | + sudo apt-get install -y clang lld + + - name: Configure Intel oneAPI compiler + if: matrix.compiler == 'intel' + run: | + sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp \ + intel-oneapi-compiler-fortran + - uses: vsoch/spack-package-action/install@main - name: Build Palace