Skip to content

Commit

Permalink
Test NJOY install script refactor for specific install location
Browse files Browse the repository at this point in the history
  • Loading branch information
johvincau committed Jul 23, 2024
1 parent 811e0a4 commit 6bf51f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ jobs:
vectfit=${{ matrix.vectfit }})
# How to handle when each individual dependency changes?
# Should each dependency have its own individual cache?
# Or should they all be bundled together?

- name: Environment Variables
run: |
Expand Down Expand Up @@ -137,6 +136,12 @@ jobs:
if: ${{ matrix.vectfit == 'y' }}
run: sudo apt install -y libblas-dev liblapack-dev

#- name: Install NJOY2016
# uses: actions/cache@v4
# with:
# path: "$HOME/NJOY2016"
# key: NJOY2016-

- name: install
shell: bash
run: |
Expand All @@ -155,7 +160,7 @@ jobs:
shell: bash
run: $GITHUB_WORKSPACE/tools/ci/gha-before-script.sh

- name: test ## possibly refactor to make more
- name: test
shell: bash
run: |
CTEST_OUTPUT_ON_FAILURE=1 make test -C $GITHUB_WORKSPACE/build/
Expand Down
13 changes: 10 additions & 3 deletions tools/ci/gha-install-njoy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/bash
set -ex

# NJOY variables
NJOY_BRANCH='main'
NJOY_REPO='https://github.com/njoy/NJOY2016'
NJOY_INSTALL_DIR=$HOME/NJOY2016/

cd $HOME
git clone https://github.com/njoy/NJOY2016
cd NJOY2016
git clone -b $NJOY_BRANCH $NJOY_REPO
cd $NJOY_INSTALL_DIR
mkdir build && cd build
cmake -Dstatic=on .. && make 2>/dev/null && sudo make install
cmake -Dstatic=on -DCMAKE_INSTALL_PREFIX=$NJOY_INSTALL_DIR ..
make 2>/dev/null && sudo make install

0 comments on commit 6bf51f4

Please sign in to comment.