mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01:00
Improve GitHub actions
This commit is contained in:
parent
a19b1804ad
commit
f180d6fcf4
72
.github/workflows/test-build.yml
vendored
72
.github/workflows/test-build.yml
vendored
@ -5,7 +5,7 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
x86_ubuntu:
|
||||
standard:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
name: x86 Ubuntu latest
|
||||
@ -16,16 +16,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install emacs autoconf libhdf5-dev
|
||||
|
||||
#- name: Install trexio from the distribution tarball
|
||||
# run: |
|
||||
# export TAG=v2.1.0
|
||||
# export VERSION=2.1.0
|
||||
# wget https://github.com/TREX-CoE/trexio/releases/download/${TAG}/trexio-${VERSION}.tar.gz
|
||||
# tar -zxf trexio-${VERSION}.tar.gz
|
||||
# cd trexio-${VERSION}
|
||||
# ./configure --prefix=/usr
|
||||
# make -j 4
|
||||
# sudo make install
|
||||
- name: Install the latest TREXIO from the GitHub clone
|
||||
run: |
|
||||
git clone https://github.com/TREX-CoE/trexio.git
|
||||
@ -76,7 +66,27 @@ jobs:
|
||||
run: make python-test
|
||||
working-directory: _build
|
||||
|
||||
- name: Configure QMCkl in debug mode
|
||||
debug:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
name: x86 Ubuntu latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install emacs autoconf libhdf5-dev
|
||||
|
||||
- name: Install the latest TREXIO from the GitHub clone
|
||||
run: |
|
||||
git clone https://github.com/TREX-CoE/trexio.git
|
||||
cd trexio
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr
|
||||
make -j 4
|
||||
sudo make install
|
||||
|
||||
- name: Build QMCkl in debug mode
|
||||
run: |
|
||||
mkdir _build_debug
|
||||
cd _build_debug
|
||||
@ -94,6 +104,44 @@ jobs:
|
||||
name: test-report-ubuntu-debug
|
||||
path: _build_debug/test-suite.log
|
||||
|
||||
hpc:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
name: x86 Ubuntu latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install emacs autoconf libhdf5-dev
|
||||
|
||||
- name: Install the latest TREXIO from the GitHub clone
|
||||
run: |
|
||||
git clone https://github.com/TREX-CoE/trexio.git
|
||||
cd trexio
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr
|
||||
make -j 4
|
||||
sudo make install
|
||||
|
||||
- name: Compile QMCkl in HPC mode
|
||||
run: |
|
||||
mkdir _build_hpc
|
||||
cd _build_hpc
|
||||
../configure --enable-hpc
|
||||
make -j2
|
||||
|
||||
- name: Run test
|
||||
run: make -j2 check
|
||||
working-directory: _build_hpc
|
||||
|
||||
- name: Archive test log file
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: test-report-ubuntu-debug
|
||||
path: _build_hpc/test-suite.log
|
||||
|
||||
# x86_macos:
|
||||
#
|
||||
# runs-on: macos-latest
|
||||
|
Loading…
Reference in New Issue
Block a user