-
Notifications
You must be signed in to change notification settings - Fork 26
39 lines (33 loc) · 1.02 KB
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: build_test
on: [pull_request, push]
jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
env:
GCC_V: 9
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.8
- name: Install dependencies
if: contains( matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install -yq cmake gfortran-9 mpich liblapack-dev libsymspg-dev
sudo apt clean -q
git clone https://github.com/sourceryinstitute/OpenCoarrays && \
mkdir OpenCoarrays/opencoarrays-install && \
cd OpenCoarrays/opencoarrays-install && \
git checkout tags/2.10.1 && \
FC="$(command -v gfortran-9)" CC="$(command -v gcc-9)" cmake .. && \
sudo make install && \
caf --version && \
cafrun --version
- name: Build with CMake
run: |
mkdir build; cd build
cmake ..; make; ctest --rerun-failed --output-on-failure