Skip to content

Add initial GitHub CI #30

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

Closed
wants to merge 8 commits into from
Closed
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
46 changes: 38 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,47 @@
name: CI

on: [push]
on: [push, pull_request]

jobs:
build:

Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install GFortran
run: sudo apt-get install gfortran
- name: cmake
run: cmake .
- name: make
run: make
- name: test
run: ctest --output-on-failure

macOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
- name: Add conda to $PATH
run: echo ::add-path::$CONDA/condabin
- name: Install GFortran
run: |
echo Add other actions to build,
echo test, and deploy your project.
sudo conda install -c conda-forge gfortran_osx-64
which gfortran
- name: cmake
run: cmake .
- name: make
run: make
- name: test
run: ctest --output-on-failure

Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Install GFortran
run: conda install -c conda-forge flang
- name: cmake
run: cmake -G "Visual Studio 16 2019" .
- name: make
run: cmake --build .
- name: test
run: ctest --output-on-failure