-
Notifications
You must be signed in to change notification settings - Fork 36
51 lines (51 loc) · 1.46 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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"
- 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