Skip to content
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
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
run: libexec/version-bump.sh ${{ github.ref_name }}
- name: build
run: ./build-coatjava.sh --clara --cvmfs --no-progress -T${{ env.nthreads }}
run: |
./build-coatjava.sh --cvmfs --no-progress -T${{ env.nthreads }}
./install-clara -b -c ./coatjava ./clara
- name: tar # tarball to preserve permissions
run: |
tar czvf coatjava.tar.gz coatjava
Expand Down
19 changes: 13 additions & 6 deletions install-clara
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,17 @@ function cleanup() {
}

function build_clara {
git clone --branch $clara --depth 1 https://code.jlab.org/hallb/clas12/clara-java
#git clone --branch $clara --depth 1 https://code.jlab.org/hallb/clas12/clara-java
git clone --depth 1 https://code.jlab.org/hallb/clas12/clara-java
cd clara-java && CLARA_HOME=$1 ./gradlew deploy && cd -
}

function build_grapes {
#git clone --branch $grapes --depth 1 https://code.jlab.org/hallb/clas12/coatjava/grapes
git clone --depth 1 https://code.jlab.org/hallb/clas12/coatjava/grapes
cd grapes && mvn package && cd -
}

trap cleanup EXIT

# Configure:
Expand Down Expand Up @@ -133,14 +140,14 @@ fi
if ! compgen -G "$coatjava/lib/clas/coat-libs-*.jar" > /dev/null
then
echo -e "\nRetrieving COATJAVA version $coatjava ..."
get https://clasweb.jlab.org/clas12offline/distribution/coatjava/coatjava-$coatjava.tar.gz
coatjava=./coatjava
get https://github.com/JeffersonLab/coatjava/releases/download/$coatjava/coatjava-$coatjava.tar.gz
coatjava=./coatjava-$coatjava
fi
mkdir -p clara-cre/plugins/clas12/config
cp -Lr $coatjava/etc $coatjava/bin $coatjava/lib* clara-cre/plugins/clas12

# GRAPES:
echo -e "\nRetrieving GRAPES version $grapes ..."
get https://clasweb.jlab.org/clas12offline/distribution/grapes/grapes-$grapes.tar.gz
mv grapes-$grapes clara-cre/plugins/grapes

build_grapes $PWD/grapes
mkdir -p clara-cre/plugins/grapes/lib/core/
cp grapes/target/grapes-*core*.jar clara-cre/plugins/grapes/lib/core/
Loading