Skip to content

Commit

Permalink
Add CI that builds source and runs unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ktras committed Jun 16, 2024
1 parent 2c87dcb commit cc5fd39
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on: [push, pull_request]

jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]

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

- uses: fortran-lang/setup-fpm@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Dependencies on Ubuntu
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install -y build-essential gfortran-14 g++-14
- name: Build and Run unit tests
run: |
fpm test --compiler gfortran-14 test

0 comments on commit cc5fd39

Please sign in to comment.