Skip to content
Merged
Show file tree
Hide file tree
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
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-and-test:
name: ${{ matrix.os }} - ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}

permissions:
contents: read

strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
compiler: gcc
cxx: g++
- os: ubuntu-latest
compiler: clang
cxx: clang++
- os: macos-latest
compiler: clang
cxx: clang++

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

- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake libboost-dev libgsl-dev

- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install cmake gsl boost

- name: Configure
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.cxx }}
run: cmake .

- name: Build
run: make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)

- name: Test
run: ctest --output-on-failure
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ bin/*
.DS_Store
*~
*.swp
# Generated CMake files and build artifacts
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
Makefile
CTestTestfile.cmake
*.a
greens_functions/
tablegen/make_cjy_table
tablegen/make_sjy_table
tests/GreensFunction*_test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# greens functions

[![Build Status](https://travis-ci.org/ecell/greens_functions.svg?branch=master)](https://travis-ci.org/ecell/greens_functions)
[![CI](https://github.com/ecell/greens_functions/workflows/CI/badge.svg)](https://github.com/ecell/greens_functions/actions)

for eGFRD simulation.
Loading