1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-11-19 12:32:40 +01:00
qmckl/.github/workflows/test-build.yml

78 lines
1.9 KiB
YAML
Raw Normal View History

name: test-build
on:
push:
2020-11-25 18:41:55 +01:00
branches: [ master ]
pull_request:
2020-11-25 18:41:55 +01:00
branches: [ master ]
jobs:
2021-05-12 13:24:35 +02:00
x86_ubuntu:
2020-10-17 01:28:15 +02:00
runs-on: ubuntu-latest
2021-05-12 13:24:35 +02:00
name: x86 Ubuntu latest
2020-10-17 01:28:15 +02:00
steps:
- uses: actions/checkout@v2
2021-10-12 11:25:05 +02:00
- name: Install dependencies
2021-10-12 00:17:14 +02:00
run: sudo apt-get install emacs autoconf libhdf5-dev
2021-10-12 11:25:05 +02:00
- name: Install trexio
2021-10-12 00:15:38 +02:00
run: |
wget https://github.com/TREX-CoE/trexio/releases/download/v1.0/trexio-1.0.0.tar.gz
tar -zxf trexio-1.0.0.tar.gz
cd trexio-1.0.0
2021-10-12 11:25:05 +02:00
./configure --prefix=/usr
2021-10-12 00:15:38 +02:00
make -j 8
sudo make install
2021-10-12 11:25:05 +02:00
- name: Build
2021-05-12 13:36:25 +02:00
run: |
2021-05-12 13:33:14 +02:00
./autogen.sh
QMCKL_DEVEL=1 ./configure --enable-silent-rules --enable-maintainer-mode --enable-debug
make -j 8
2021-10-12 11:25:05 +02:00
- name: Run test
run: |
2021-05-12 13:33:14 +02:00
make -j check
2021-10-12 11:25:05 +02:00
ldd tests/test_qmckl_ao
2021-07-07 19:09:03 +02:00
- name: Archive test log file
uses: actions/upload-artifact@v2
with:
2021-10-12 11:25:05 +02:00
name: test-report
2021-07-07 19:09:03 +02:00
path: test-suite.log
2021-10-12 11:25:05 +02:00
- name: Dist test
run: |
make distcheck
2021-10-12 11:35:42 +02:00
- name: Archive test log file
uses: actions/upload-artifact@v2
with:
name: dist-report
path: test-suite.log
2021-05-12 23:41:43 +02:00
# x86_macos:
#
# runs-on: macos-latest
# name: x86 MacOS latest
#
# steps:
# - uses: actions/checkout@v2
# - name: install dependencies
# run: |
# brew install gfortran-10
# brew install emacs
# brew install autoconf automake libtool
2021-10-12 00:15:38 +02:00
# - name: install trexio
# run: |
# wget https://github.com/TREX-CoE/trexio/releases/download/v1.0/trexio-1.0.0.tar.gz
# tar -zxf trexio-1.0.0.tar.gz
# cd trexio-1.0.0
# ./configure
# make -j 8
# sudo make install
2021-05-12 23:41:43 +02:00
# - name: Run test
# run: |
# ./autogen.sh
# QMCKL_DEVEL=1 ./configure --enable-silent-rules --enable-maintainer-mode --enable-debug
# make -j 8
# make -j check
# make distcheck