Skip to content

Commit

Permalink
add CI in Github Actions, remove Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Jan 19, 2021
1 parent 86caafc commit 5f174e7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 26 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on: [push, pull_request]

jobs:
ubuntu2004:
name: "Ubuntu 20.04"
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: dependencies
run: |
sudo apt-get install g++ libz-dev libboost-dev libwxgtk3.0-gtk3-dev swig libxy-dev liblua5.3-dev
curl -LsS -o tests/catch.hpp https://github.com/philsquared/Catch/releases/download/v1.10.0/catch.hpp
- name: build
run: |
g++ --version
autoreconf -i
./configure LUA=/usr/bin/lua5.3 LUA_INCLUDE=-I/usr/include/lua5.3 LUA_LIB=-llua5.3
make -j2
sudo make install
- name: test
run: |
make -j2 check
export LD_LIBRARY_PATH=/usr/local/lib
cfityk --version
clang35:
name: "Ubuntu 16.04, Clang 3.5"
runs-on: ubuntu-16.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
CC: clang-3.5
CXX: clang++-3.5
steps:
- uses: actions/checkout@v2
- name: dependencies
run: |
sudo apt-get install clang-3.5 cmake libz-dev libxy-dev libboost-dev liblua5.2-dev
- name: build
run: |
$CXX --version
cmake --version
cmake .
make -j2
sudo make install
- name: test
run: |
export LD_LIBRARY_PATH=/usr/local/lib
cfityk --version
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Code: https://github.com/wojdyr/fityk
Manual: http://fityk.readthedocs.org/en/latest/
Discussions: http://groups.google.com/group/fityk-users/
Building from Source: Read the INSTALL file
[![Build Status](https://travis-ci.org/wojdyr/fityk.svg?branch=master)](https://travis-ci.org/wojdyr/fityk)
[![MSVC Build Status](https://ci.appveyor.com/api/projects/status/q2vmyiya4vril835?svg=true)](https://ci.appveyor.com/project/wojdyr/fityk)
[![GitHub CI](https://github.com/wojdyr/fityk/workflows/CI/badge.svg)](https://github.com/wojdyr/fityk/actions)
[![AppVeyor CI](https://ci.appveyor.com/api/projects/status/q2vmyiya4vril835?svg=true)](https://ci.appveyor.com/project/wojdyr/fityk)
Citing in academic papers: [J. Appl. Cryst. 43, 1126 (2010)](http://dx.doi.org/10.1107/S0021889810030499) ([reprint](http://wojdyr.github.io/fityk-JAC-10-reprint.pdf))
Contact: [email protected]

0 comments on commit 5f174e7

Please sign in to comment.