Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use submodules instead of clones in linux workflow #321

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 4 additions & 39 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ jobs:
- name: Repo Dependencies
run: Utils/CloneDeps.sh
- name: Build
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
PELE_PHYSICS_HOME: ${GITHUB_WORKSPACE}/build/PelePhysics
PELELMEX_HOME: ${GITHUB_WORKSPACE}
AMREX_HYDRO_HOME: ${GITHUB_WORKSPACE}/build/AMReX-Hydro
SUNDIALS_HOME : ${GITHUB_WORKSPACE}/build/sundials
working-directory: ./Exec/RegTests/EB_PipeFlow/
run: |
make TPL COMP=gnu USE_MPI=TRUE
Expand All @@ -97,12 +91,6 @@ jobs:
- name: Repo Dependencies
run: Utils/CloneDeps.sh
- name: Build
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
PELE_PHYSICS_HOME: ${GITHUB_WORKSPACE}/build/PelePhysics
PELELMEX_HOME: ${GITHUB_WORKSPACE}
AMREX_HYDRO_HOME: ${GITHUB_WORKSPACE}/build/AMReX-Hydro
SUNDIALS_HOME : ${GITHUB_WORKSPACE}/build/sundials
working-directory: ./Exec/RegTests/EB_BackwardStepFlame/
run: |
make TPL COMP=gnu USE_MPI=TRUE
Expand All @@ -125,12 +113,6 @@ jobs:
- name: Repo Dependencies
run: Utils/CloneDeps.sh
- name: Build
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
PELE_PHYSICS_HOME: ${GITHUB_WORKSPACE}/build/PelePhysics
PELELMEX_HOME: ${GITHUB_WORKSPACE}
AMREX_HYDRO_HOME: ${GITHUB_WORKSPACE}/build/AMReX-Hydro
SUNDIALS_HOME : ${GITHUB_WORKSPACE}/build/sundials
working-directory: ./Exec/Efield/FlameSheetIons
run: |
make TPL COMP=gnu USE_MPI=TRUE
Expand All @@ -154,22 +136,12 @@ jobs:
run: Utils/CloneDeps.sh
- name: GenerateTurbFile
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
PELE_PHYSICS_HOME: ${GITHUB_WORKSPACE}/build/PelePhysics
PELELMEX_HOME: ${GITHUB_WORKSPACE}
AMREX_HYDRO_HOME: ${GITHUB_WORKSPACE}/build/AMReX-Hydro
SUNDIALS_HOME : ${GITHUB_WORKSPACE}/build/sundials
AMREX_HOME: ${GITHUB_WORKSPACE}/Submodules/amrex
working-directory: ./Exec/RegTests/TurbInflow/TurbFileHIT
run: |
make -j 2 COMP=gnu
./PeleTurb3d.gnu.ex input hit_file=../../HITDecay/hit_ic_4_32.dat input_ncell=32
- name: Build
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
PELE_PHYSICS_HOME: ${GITHUB_WORKSPACE}/build/PelePhysics
PELELMEX_HOME: ${GITHUB_WORKSPACE}
AMREX_HYDRO_HOME: ${GITHUB_WORKSPACE}/build/AMReX-Hydro
SUNDIALS_HOME : ${GITHUB_WORKSPACE}/build/sundials
working-directory: ./Exec/RegTests/TurbInflow/
run: |
make TPL COMP=gnu USE_MPI=TRUE DEBUG=TRUE
Expand Down Expand Up @@ -200,26 +172,19 @@ jobs:
run: Utils/CloneDeps.sh
- name: Build AMReX Tools
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
working-directory: ./build/amrex/Tools/Plotfile
AMREX_HOME: ${GITHUB_WORKSPACE}/Submodules/amrex
working-directory: ./Submodules/amrex/Tools/Plotfile
run: |
make
- name: Build PeleLMeX
env:
AMREX_HOME: ${GITHUB_WORKSPACE}/build/amrex
PELE_PHYSICS_HOME: ${GITHUB_WORKSPACE}/build/PelePhysics
PELELMEX_HOME: ${GITHUB_WORKSPACE}
AMREX_HYDRO_HOME: ${GITHUB_WORKSPACE}/build/AMReX-Hydro
SUNDIALS_HOME : ${GITHUB_WORKSPACE}/build/sundials
PELEMP_HOME: ${GITHUB_WORKSPACE}/build/PeleMP
working-directory: ./Exec/RegTests/SprayTest/
run: |
make TPL COMP=gnu USE_MPI=TRUE
make -j 2 COMP=gnu USE_MPI=TRUE
- name: Run
working-directory: ./Exec/RegTests/SprayTest/
run: |
cp ${GITHUB_WORKSPACE}/build/amrex/Tools/Plotfile/fcompare.gnu.ex .
cp ${GITHUB_WORKSPACE}/Submodules/amrex/Tools/Plotfile/fcompare.gnu.ex .
sed -i "s/mpiexec -n 1/mpiexec -n 2/g" multiRuns.py
./multiRuns.py
./compareOutput.py
14 changes: 2 additions & 12 deletions Utils/CloneDeps.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#!/usr/bin/env bash

echo "Getting PeleLMeX dependencies - tests ... "
export PELELM_HOME=${PWD}/..
mkdir build
git clone https://github.com/AMReX-Codes/amrex.git build/amrex
export AMREX_HOME=${PWD}/build/amrex
git clone -b development https://github.com/AMReX-Combustion/PelePhysics.git build/PelePhysics
export PELE_PHYSICS_HOME=${PWD}/build/PelePhysics
git clone https://github.com/AMReX-Codes/AMReX-Hydro.git build/AMReX-Hydro
export AMREX_HYDRO_HOME=${PWD}/build/AMReX-Hydro
git clone https://github.com/AMReX-Combustion/PeleMP.git build/PeleMP
export PELEMP_HOME=${PWD}/build/PeleMP
git clone https://github.com/LLNL/sundials.git build/sundials
export SUNDIALS_HOME=${PWD}/build/sundials
git submodule init
git submodule update
Loading