Update README.md with the article link #68
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
buildfpm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install packages | |
run: | | |
set -ex | |
echo "Update information of package list.." | |
sudo apt-get update | |
echo "Install Fortran compiler .." | |
sudo apt-get install -y gfortran | |
echo "Install OpenMP headers .." | |
sudo apt-get install -y libomp-dev | |
echo "Install lapack .." | |
sudo apt-get install -y libopenblas-dev liblapack-dev | |
echo "install meson" | |
sudo apt-get install -y meson | |
- name: Install fpm | |
uses: fortran-lang/setup-fpm@v5 | |
with: | |
fpm-version: 'v0.9.0' | |
- name: Build featom | |
run: | | |
set -ex | |
fpm build | |
- name: Test featom | |
run: | | |
set -ex | |
fpm test | |
- name: Test convergence | |
run: | | |
set -ex | |
fpm run gpd_coulomb_schroed_nelements | |
- name: Test Release Mode | |
run: | | |
set -ex | |
fpm test --profile=release | |
fpm run --profile=release gpd_coulomb_schroed_nelements | |
buildmeson: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install packages | |
run: | | |
set -ex | |
echo "Update information of package list.." | |
sudo apt-get update | |
echo "Install Fortran compiler .." | |
sudo apt-get install -y gfortran | |
echo "Install OpenMP headers .." | |
sudo apt-get install -y libomp-dev | |
echo "Install lapack .." | |
sudo apt-get install -y libopenblas-dev liblapack-dev | |
echo "install meson" | |
sudo apt-get install -y meson | |
- name: Build featom | |
run: | | |
set -ex | |
meson setup bbdir -Dwith_tests=True -Dwith_app=True | |
- name: Test featom | |
run: | | |
set -ex | |
meson test -C bbdir | |
- name: Test convergence [release] | |
run: | | |
set -ex | |
meson compile -C bbdir | |
./bbdir/app/gpd_coulomb_schroed_nelements |