CI: Fix Skipped Required Workflows (again) #316
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: w/PETSc | |
| on: | |
| push: | |
| branches: | |
| - "development" | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.head_ref }}-petsc | |
| cancel-in-progress: true | |
| jobs: | |
| check_changes: | |
| name: Analyze | |
| uses: ./.github/workflows/check_changes.yml | |
| test-petsc-gcc: | |
| name: GCC | |
| runs-on: ubuntu-latest | |
| needs: check_changes | |
| if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }} | |
| env: | |
| CXXFLAGS: "-Werror" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Dependencies | |
| run: | | |
| .github/workflows/dependencies/gcc.sh | |
| - name: CCache Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ccache | |
| key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | |
| restore-keys: | | |
| ccache-${{ github.workflow }}-${{ github.job }}-git- | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev | |
| - name: build WarpX w/PETSc | |
| run: | | |
| export CCACHE_COMPRESS=1 | |
| export CCACHE_COMPRESSLEVEL=10 | |
| export CCACHE_MAXSIZE=100M | |
| ccache -z | |
| export warpx_dir=${PWD} | |
| echo "warpx_dir is ${warpx_dir}" | |
| export PETSC_DIR=${warpx_dir}/petsc | |
| echo "PETSC_DIR is ${PETSC_DIR}" | |
| export PETSC_ARCH=arch-opt | |
| cd ${warpx_dir} | |
| git clone -b release https://gitlab.com/petsc/petsc.git petsc | |
| cd ${PETSC_DIR} | |
| ./configure --with-fortran-bindings=no --with-x=no --with-mpi=0 | |
| make -j 4 | |
| cd ${warpx_dir} | |
| cmake -S . -B build \ | |
| -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
| -DWarpX_DIMS="1;2;RZ;3" \ | |
| -DAMReX_PETSC=YES \ | |
| -DPETSC_DIR=${PETSC_DIR} \ | |
| -DPETSC_ARCH=${PETSC_ARCH} \ | |
| -DWarpX_EB=OFF \ | |
| -DWarpX_MPI=OFF \ | |
| -DWarpX_QED=OFF | |
| cmake --build build -j 4 | |
| ccache -s | |
| du -hs ~/.cache/ccache | |
| test-petsc-mpich: | |
| name: GCC-12 + MPICH | |
| runs-on: ubuntu-latest | |
| needs: check_changes | |
| if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }} | |
| env: | |
| CXXFLAGS: "-Werror" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Dependencies | |
| run: | | |
| .github/workflows/dependencies/gcc12.sh | |
| - name: CCache Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ccache | |
| key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | |
| restore-keys: | | |
| ccache-${{ github.workflow }}-${{ github.job }}-git- | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev mpich libmpich-dev | |
| - name: build WarpX w/PETSc | |
| run: | | |
| export CCACHE_COMPRESS=1 | |
| export CCACHE_COMPRESSLEVEL=10 | |
| export CCACHE_MAXSIZE=100M | |
| ccache -z | |
| export warpx_dir=${PWD} | |
| echo "warpx_dir is ${warpx_dir}" | |
| export PETSC_DIR=${warpx_dir}/petsc | |
| echo "PETSC_DIR is ${PETSC_DIR}" | |
| export PETSC_ARCH=arch-opt | |
| cd ${warpx_dir} | |
| git clone -b release https://gitlab.com/petsc/petsc.git petsc | |
| cd ${PETSC_DIR} | |
| ./configure --with-fortran-bindings=no --with-x=no --with-cc=mpicc --with-fc=mpif90 --with-cxx=mpicxx | |
| make -j 4 | |
| cd ${warpx_dir} | |
| cmake -S . -B build \ | |
| -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
| -DWarpX_DIMS="1;2;RZ;3" \ | |
| -DAMReX_PETSC=YES \ | |
| -DPETSC_DIR=${PETSC_DIR} \ | |
| -DPETSC_ARCH=${PETSC_ARCH} \ | |
| -DWarpX_EB=OFF \ | |
| -DWarpX_MPI=ON \ | |
| -DWarpX_QED=OFF | |
| cmake --build build -j 4 | |
| ccache -s | |
| du -hs ~/.cache/ccache | |
| test-petsc-gcc-debug: | |
| name: GCC [Debug] | |
| runs-on: ubuntu-latest | |
| needs: check_changes | |
| if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }} | |
| env: | |
| CXXFLAGS: "-Werror" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Dependencies | |
| run: | | |
| .github/workflows/dependencies/gcc.sh | |
| - name: CCache Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ccache | |
| key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | |
| restore-keys: | | |
| ccache-${{ github.workflow }}-${{ github.job }}-git- | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev | |
| - name: build WarpX w/PETSc | |
| run: | | |
| export CCACHE_COMPRESS=1 | |
| export CCACHE_COMPRESSLEVEL=10 | |
| export CCACHE_MAXSIZE=100M | |
| ccache -z | |
| export warpx_dir=${PWD} | |
| echo "warpx_dir is ${warpx_dir}" | |
| export PETSC_DIR=${warpx_dir}/petsc | |
| echo "PETSC_DIR is ${PETSC_DIR}" | |
| export PETSC_ARCH=arch-opt | |
| export AMREX_DIR=${warpx_dir}/amrex | |
| echo "AMREX_DIR is ${AMREX_DIR}" | |
| cd ${warpx_dir} | |
| git clone -b release https://gitlab.com/petsc/petsc.git petsc | |
| cd ${PETSC_DIR} | |
| ./configure --with-fortran-bindings=no --with-x=no --with-mpi=0 --with-debugging=1 | |
| make -j 4 | |
| cd ${warpx_dir} | |
| cmake -S . -B build \ | |
| -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
| -DWarpX_DIMS="1;2;RZ;3" \ | |
| -DAMReX_PETSC=YES \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DPETSC_DIR=${PETSC_DIR} \ | |
| -DPETSC_ARCH=${PETSC_ARCH} \ | |
| -DWarpX_EB=OFF \ | |
| -DWarpX_MPI=OFF \ | |
| -DWarpX_QED=OFF | |
| cmake --build build -j 4 | |
| ccache -s | |
| du -hs ~/.cache/ccache | |
| test-petsc-mpich-debug: | |
| name: GCC-12 + MPICH [Debug] | |
| runs-on: ubuntu-latest | |
| needs: check_changes | |
| if: ${{ github.event.pull_request.draft == false && needs.check_changes.outputs.has_non_docs_changes == 'true' }} | |
| env: | |
| CXXFLAGS: "-Werror" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Dependencies | |
| run: | | |
| .github/workflows/dependencies/gcc12.sh | |
| - name: CCache Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ccache | |
| key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | |
| restore-keys: | | |
| ccache-${{ github.workflow }}-${{ github.job }}-git- | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev mpich libmpich-dev | |
| - name: build WarpX w/PETSc | |
| run: | | |
| export CCACHE_COMPRESS=1 | |
| export CCACHE_COMPRESSLEVEL=10 | |
| export CCACHE_MAXSIZE=100M | |
| ccache -z | |
| export warpx_dir=${PWD} | |
| echo "warpx_dir is ${warpx_dir}" | |
| export PETSC_DIR=${warpx_dir}/petsc | |
| echo "PETSC_DIR is ${PETSC_DIR}" | |
| export PETSC_ARCH=arch-opt | |
| cd ${warpx_dir} | |
| git clone -b release https://gitlab.com/petsc/petsc.git petsc | |
| cd ${PETSC_DIR} | |
| ./configure --with-fortran-bindings=no --with-x=no --with-cc=mpicc --with-fc=mpif90 --with-cxx=mpicxx --with-debugging=1 | |
| make -j 4 | |
| cd ${warpx_dir} | |
| cmake -S . -B build \ | |
| -DCMAKE_VERBOSE_MAKEFILE=ON \ | |
| -DWarpX_DIMS="1;2;RZ;3" \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DAMReX_PETSC=YES \ | |
| -DPETSC_DIR=${PETSC_DIR} \ | |
| -DPETSC_ARCH=${PETSC_ARCH} \ | |
| -DWarpX_EB=OFF \ | |
| -DWarpX_MPI=ON \ | |
| -DWarpX_QED=OFF | |
| cmake --build build -j 4 | |
| ccache -s | |
| du -hs ~/.cache/ccache |