Merge pull request #332 from merzlab/325-cew-enabled-qmmm-seg-fault #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Serial Build | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
make-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: sudo apt-get -y install gfortran | |
- name: Configure serial | |
run: ./configure --serial --enablef --prefix $PWD/install gnu | |
- name: Build serial | |
run: make | |
- name: Install serial | |
run: make install | |
- name: Set environment variables | |
run: echo "QUICK_HOME=$PWD/install" >> $GITHUB_ENV | |
- name: Test serial | |
run: make fulltest | |
- name: Archive test results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: serial-tests | |
path: /home/runner/work/QUICK/QUICK/install/test/runs/serial | |
retention-days: 3 | |
- uses: actions/download-artifact@v2 | |
with: | |
name: serial-tests | |
- name: Display structure of artifacts | |
run: ls -R | |
cmake-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install gfortran cmake | |
- name: Configure serial | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCOMPILER=GNU -DENABLEF=TRUE -DCMAKE_INSTALL_PREFIX=$(pwd)/../install | |
- name: Build serial | |
run: | | |
cd build | |
make -j2 install | |
- name: Set environment variables | |
run: echo "QUICK_HOME=$PWD/install" >> $GITHUB_ENV | |
- name: Test serial | |
run: | | |
cd install | |
./runtest --serial --full | |
- name: Archive test results | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: serial-tests | |
path: /home/runner/work/QUICK/QUICK/install/test/runs/serial | |
retention-days: 3 |