forked from BerkeleyLab/assert
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (25 loc) · 806 Bytes
/
CI.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
name: CI
on: [push, pull_request]
jobs:
Build:
runs-on: [ubuntu-22.04]
env:
FC: gfortran
GCC_V: 12
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: fortran-lang/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies Ubuntu
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt install -y gfortran-${GCC_V} build-essential
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
- name: Build and Test
run: |
fpm test --profile release --flag -ffree-line-length-0