Skip to content

Fix CI for change in build system #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: evolve
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 27 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Checkout submodules
run: |
git submodule init
git submodule update


- name: Install Dependencies
- name: Install gnuplot and gfortran
run: |
sudo apt install -y gnuplot
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
Expand All @@ -34,14 +28,31 @@ jobs:
with:
format: 'YYYY-MM'

- name: Build
- name: Setup cache for stack to speed up fpm build
id: cache
uses: actions/cache@v2
with:
path: "/home/runner/.stack/"
key: ${{ steps.time.outputs.time }}

- name: Install fpm
run: |
mkdir build
cd build
cmake ..
make
git init fpm
git -C fpm fetch https://github.com/fortran-lang/fpm.git ffd95a4179276d49fd4d2a277c2eba905dc43b7a
git -C fpm checkout -qf FETCH_HEAD
cd fpm/bootstrap
stack build
stack install

- name: put fpm to PATH
run: |
sudo cp /home/runner/.local/bin/fpm /usr/local/bin

- name: Build
run: fpm build

- name: Run tests
run: |
cd build
ctest -V
run: fpm test

- name: Generate Graphs
run: ./generate_graphs.sh