mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-18 11:21:44 +02:00
72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
name: test-build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
x86_ubuntu:
|
|
|
|
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 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 --prefix=/usr
|
|
make -j 8
|
|
sudo make install
|
|
- name: Build
|
|
run: |
|
|
./autogen.sh
|
|
QMCKL_DEVEL=1 ./configure --enable-silent-rules --enable-maintainer-mode --enable-debug
|
|
make -j 8
|
|
- name: Run test
|
|
run: |
|
|
make -j check
|
|
ldd tests/test_qmckl_ao
|
|
- name: Archive test log file
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: test-report
|
|
path: test-suite.log
|
|
- name: Dist test
|
|
run: |
|
|
make distcheck
|
|
|
|
# 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
|
|
# - 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
|
|
# - 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
|