mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 20:54:09 +01:00
Fix test-build GitHub Action (#67)
* Fix bugs in the .yml file * Fix test step in the GitHub CI When using out of source build all `make` rules should be executed in the corresponding directory (e.g. `_build`) * Add CI step to test TREXIO on MacOS * Explicitly provide gcc-10 and gfortran-10 to configure
This commit is contained in:
parent
5b6f530255
commit
370a12803a
44
.github/workflows/test-build.yml
vendored
44
.github/workflows/test-build.yml
vendored
@ -47,6 +47,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
run: make -j 4 check
|
run: make -j 4 check
|
||||||
|
working-directory: _build
|
||||||
|
|
||||||
- name: Archive test log file
|
- name: Archive test log file
|
||||||
if: failure()
|
if: failure()
|
||||||
@ -57,13 +58,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Dist test
|
- name: Dist test
|
||||||
run: make distcheck
|
run: make distcheck
|
||||||
|
working-directory: _build
|
||||||
- name: Archive test log file
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dist-report-ubuntu
|
|
||||||
path: test-suite.log
|
|
||||||
|
|
||||||
x86_macos:
|
x86_macos:
|
||||||
|
|
||||||
@ -91,37 +86,26 @@ jobs:
|
|||||||
git clone https://github.com/TREX-CoE/trexio.git
|
git clone https://github.com/TREX-CoE/trexio.git
|
||||||
cd trexio
|
cd trexio
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
mkdir _build
|
|
||||||
cd _build
|
|
||||||
../configure --enable-silent-rules
|
|
||||||
make -j 4
|
|
||||||
|
|
||||||
- name: Run test
|
|
||||||
run: make -j 4 check
|
|
||||||
|
|
||||||
- name: Archive test log file
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: test-report-ubuntu
|
|
||||||
path: test-suite.log
|
|
||||||
|
|
||||||
- name: Dist test
|
|
||||||
run: make distcheck
|
|
||||||
|
|
||||||
- name: Archive test log file
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
./configure --prefix=${PWD}/_install --enable-silent-rules
|
./configure --prefix=${PWD}/_install --enable-silent-rules
|
||||||
make -j 4
|
make -j 4
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
- name: Test TREXIO
|
||||||
|
run: make -j 4 check
|
||||||
|
working-directory: trexio
|
||||||
|
|
||||||
|
- name: Archive TREXIO test log file
|
||||||
|
if: failure()
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: test-report-trexio-macos
|
||||||
|
path: trexio/test-suite.log
|
||||||
|
|
||||||
- name: Build QMCkl
|
- name: Build QMCkl
|
||||||
run: |
|
run: |
|
||||||
export PKG_CONFIG_PATH=${PWD}/trexio/_install/lib/pkgconfig:$PKG_CONFIG_PATH
|
export PKG_CONFIG_PATH=${PWD}/trexio/_install/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --enable-silent-rules --enable-debug
|
./configure CC=gcc-10 FC=gfortran-10 --enable-silent-rules --enable-debug
|
||||||
make -j 4
|
make -j 4
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
|
Loading…
Reference in New Issue
Block a user