-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from mittinatten/add-github-actions
Switch from Travis CI to Github actions. #80
- Loading branch information
Showing
2 changed files
with
52 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.