1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-30 00:44:52 +02:00
qmckl/.github/workflows/test-build.yml

87 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-14 21:40:14 +02:00
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-14 21:40:14 +02:00
2021-10-12 11:25:05 +02:00
- name: Install trexio
2021-10-12 00:15:38 +02:00
run: |
2021-10-14 16:17:48 +02:00
export VERSION=1.1.0
wget https://github.com/TREX-CoE/trexio/releases/download/v${VERSION}/trexio-${VERSION}.tar.gz
tar -zxf trexio-${VERSION}.tar.gz
cd trexio-${VERSION}
2021-10-12 11:25:05 +02:00
./configure --prefix=/usr
2021-10-12 00:15:38 +02:00
make -j 8
2021-10-14 11:08:30 +02:00
sudo make install
2021-10-14 21:40:14 +02:00
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
2021-11-01 10:43:08 +01:00
./configure --enable-silent-rules --enable-debug
2021-05-12 13:33:14 +02:00
make -j 8
2021-10-14 21:40:14 +02:00
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-14 21:40:14 +02:00
2021-07-07 19:09:03 +02:00
- name: Archive test log file
2021-10-12 11:48:48 +02:00
if: failure()
2021-07-07 19:09:03 +02:00
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-14 21:40:14 +02:00
2021-10-12 11:25:05 +02:00
- name: Dist test
run: |
make distcheck
2021-10-14 21:40:14 +02:00
2021-10-12 11:35:42 +02:00
- name: Archive test log file
2021-10-12 11:48:48 +02:00
if: failure()
2021-10-12 11:35:42 +02:00
uses: actions/upload-artifact@v2
with:
name: dist-report
path: test-suite.log
2021-10-14 21:40:14 +02:00
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
2021-10-14 11:08:30 +02:00
# ./configure
2021-10-12 00:15:38 +02:00
# make -j 8
2021-10-14 11:08:30 +02:00
# sudo make install
2021-05-12 23:41:43 +02:00
# - name: Run test
# run: |
# ./autogen.sh
2021-11-01 10:43:08 +01:00
# ./configure --enable-silent-rules --enable-debug
2021-05-12 23:41:43 +02:00
# make -j 8
# make -j check
# make distcheck