-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (43 loc) · 1.33 KB
/
ci-build.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
name: CI build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
env:
TERM: xterm
AM_COLOR_TESTS: always
steps:
- uses: actions/checkout@v3
- name: Show OS info
run: cat /etc/os-release
- name: Install dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -y libhamlib-dev libxmlrpc-core-c3-dev libcmocka-dev python3-pexpect python3-dev
- name: Set up datadir
run: mkdir datadir && ln -s $PWD/share datadir/tlf
- name: Autoreconf and basic make
run: |
autoreconf -i && ./configure --datadir=$PWD/datadir && make -j2
- name: Configure with xmlrpc
run: |
make clean && ./configure --datadir=$PWD/datadir --enable-fldigi-xmlrpc && make -j2
- name: Configure with xmlrpc and Python plugin
run: |
make clean && ./configure --datadir=$PWD/datadir --enable-fldigi-xmlrpc --enable-python-plugin && make -j2
- name: Run tests
id: run_tests
continue-on-error: true
run: make check
- name: Show failed test results
if: ${{ steps.run_tests.outcome == 'failure' }}
run: |
for f in test/run_*.log; do
grep -q FAILED $f && echo -e "\n>>> $f:\n" && cat $f
done
exit 1