Skip to content

Commit

Permalink
Merge pull request #86 from mittinatten/add-github-actions
Browse files Browse the repository at this point in the history
Switch from Travis CI to Github actions. #80
  • Loading branch information
mittinatten authored Nov 13, 2022
2 parents aa3c67d + 3f38342 commit 2b01039
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 41 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Run tests
run-name: ${{ github.actor }} testing freesasa
on:
push:
branches:
- "master"
pull_request:
branches:
- master
jobs:
Test:
strategy:
matrix:
include:
- CC: gcc
CXX: g++
enable: "--disable-json --disable-xml"
deps: "libc++-dev libc++abi-dev"
- CC: gcc
CXX: g++
enable: "--enable-check --enable-json --enable-xml"
deps: "check libjson-c-dev libxml2-dev libxml2-utils libc++-dev libc++abi-dev"
# causes linker errors, what else is needed?
# - CC: clang
# CXX: clang
# enable: "--enable-check --enable-json --enable-xml"
# deps: "check libjson-c-dev libxml2-dev libxml2-utils libc++-dev libc++abi-dev"
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Install dependencies"
run: |
sudo apt-get update -qq
sudo apt-get install -qq ${{ matrix.deps }}
git submodule init
git submodule update
- name: "Configure"
run: |
autoreconf -i
./configure ${{ matrix.enable }} CC=${{ matrix.CC }} CXX=${{ matrix.CXX }}
- name: "Build"
run: make
- name: "Test"
run: make check
- name: "Log errors"
if: ${{ failure() }}
run: |
echo "\n>>> Test API log <<<"
cat tests/test-api.log
echo "\n>>> Test CLI log <<<"
cat tests/test-cli.log
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

0 comments on commit 2b01039

Please sign in to comment.