Skip to content

Commit

Permalink
added simple CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa committed Dec 12, 2021
1 parent 3347bab commit 37df6e6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Install OpenMPI and gfortran
run: sudo apt-get install gfortran libopenmpi-dev
- name: Compile
run: cd src && make
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ $(TEST_EXE): %.exe: %.f90.o $(LIB)
$(LD) -o $@ $^

$(EXE): $(OBJS)
$(FC) $(FFLAGS) $^ -o $(EXE)
mkdir -p $(EXEDIR)/data
$(FC) $(FFLAGS) $^ -o $(EXE)

# Create object files from Fortran source
$(OBJS) $(TEST_OBJS): %.o: % | %.d
Expand Down

0 comments on commit 37df6e6

Please sign in to comment.