diff --git a/.github/workflows/halld_recon.yml b/.github/workflows/halld_recon.yml index 53dc39f7a..e5f88ed17 100644 --- a/.github/workflows/halld_recon.yml +++ b/.github/workflows/halld_recon.yml @@ -15,14 +15,69 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: tags/rasool_jana2 path: JANA2 - uses: cvmfs-contrib/github-action-cvmfs@v4 - - name: Make Scripts executable + - name: Create jana build files run: | - chmod +x ./JANA2/.github/jana_build.sh - chmod +x ./JANA2/.github/halld_recon_build.sh + cd JANA2 + cat < jana_prereqs_version.xml + + + + Update to amptools, gluex_root_analysis, halld_recont, halld_sim, hdgeant4, hd_utilities + + + + + + + + + + + + + + + + + + + + + + + + + EOF + cat < jana_build.sh + #!/bin/bash + + export CC=\$(which gcc) + export CXX=\$(which g++) + export BUILD_SCRIPTS=/group/halld/Software/build_scripts + export PROJECT_ROOT=/workspace + export JANA_HOME=\$PROJECT_ROOT/JANA2 + export JANA_PLUGIN_PATH=\$PROJECT_ROOT/JANA2/plugins + + source \$BUILD_SCRIPTS/gluex_env_boot_jlab.sh --bs \$BUILD_SCRIPTS + gxenv \$PROJECT_ROOT/JANA2/jana_prereqs_version.xml + + echo "jana_home value: \$JANA_HOME" + + cd \$JANA_HOME + mkdir -p build + cd build + + echo "Building start" + cmake3 \$JANA_HOME -DUSE_XERCES=1 -DCMAKE_CXX_STANDARD=17 + make install + EOF + chmod +x jana_build.sh + - name: Build JANA2 on Alma9 run: | @@ -30,7 +85,7 @@ jobs: --user $(id -u):$(id -g) \ --volume /cvmfs/oasis.opensciencegrid.org/gluex/group/:/group \ --mount type=bind,source=${{ github.workspace }},target=/workspace \ - raiqarasool/gluex_build:latest /bin/bash -c "source /workspace/JANA2/.github/jana_build.sh" + raiqarasool/gluex_build:latest /bin/bash -c "source /workspace/JANA2/jana_build.sh" - name: Git Clone Halld_recon run: | @@ -38,13 +93,52 @@ jobs: cd halld_recon git clone --branch rasool_jana2 https://github.com/JeffersonLab/halld_recon.git . + - name: Creat halld_recon build files + run: | + cd halld_recon + cat < halld_recon_build_prereqs_version.xml + + + + Update of halld_recon, halld_sim, hdgeant4, and gluex_MCWrapper + + + + + + + + + + + + + EOF + cat < halld_recon_build.sh + #!/bin/bash + + cd /workspace/halld_recon + + export BUILD_SCRIPTS=/group/halld/Software/build_scripts + + source \$BUILD_SCRIPTS/gluex_env_boot_jlab.sh --bs \$BUILD_SCRIPTS + gxenv /workspace/halld_recon/halld_recon_build_prereqs_version.xml + + chmod +x \$JANA_HOME/bin/* + + cd src + nice scons install + EOF + chmod +x halld_recon_build.sh + + - name: Build Halld_recon on Alma9 run: | docker run --rm \ --user $(id -u):$(id -g) \ --volume /cvmfs/oasis.opensciencegrid.org/gluex/group/:/group \ --mount type=bind,source=${{ github.workspace }},target=/workspace \ - raiqarasool/gluex_build:latest /bin/bash -c "source /workspace/JANA2/.github/halld_recon_build.sh" + raiqarasool/gluex_build:latest /bin/bash -c "source /workspace/halld_recon/halld_recon_build.sh"