From 5f7f3fb0ed8cc4b9e2e63520f0f7dc8a2f93a646 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Sat, 23 Nov 2024 16:13:24 -0500 Subject: [PATCH] hash cpptraj --- .github/workflows/python-package-conda.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 1f10e09ab..5d543abcf 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -36,6 +36,13 @@ jobs: key: ${{ runner.os }}-netcdf-c-${{ hashFiles('.github/workflows/python-package-conda.yml') }} restore-keys: | ${{ runner.os }}-netcdf-c- + - name: Cache cpptraj + uses: actions/cache@v4 + with: + path: ~/cpptraj + key: ${{ runner.os }}-cpptraj-${{ hashFiles('https://github.com/Amber-MD/cpptraj/commits/main') }} + restore-keys: | + ${{ runner.os }}-cpptraj- - name: Set up Miniconda uses: conda-incubator/setup-miniconda@v3 with: @@ -70,12 +77,14 @@ jobs: export PATH=$PATH:$HOME/netcdf-c/bin - name: Install cpptraj run: | - git clone https://github.com/Amber-MD/cpptraj - cd cpptraj - export CPPTRAJHOME=`pwd` - yes | ./configure -shared -openmp gnu - make libcpptraj - cd ../ + if [ ! -d "$HOME/cpptraj" ]; then + git clone https://github.com/Amber-MD/cpptraj + cd cpptraj + export CPPTRAJHOME=`pwd` + yes | ./configure -shared -openmp gnu + make libcpptraj + cd ../ + fi - name: Install pytraj run: | which python3