Provide a fallback for M_PI and M_PI_2 (#412) #144
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
name: CI build for Ubuntu 20 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
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 astyle | |
- name: Set up datadir | |
run: mkdir datadir && ln -s $PWD/share datadir/tlf | |
- name: Check source formatting | |
run: | | |
F=$(astyle --dry-run --formatted --options=tools/astylerc src/*.[ch]) | |
if [ ! -z "$F" ] ; then sed -e 's/^F/To be f/' <<< $F; exit 1; fi | |
- 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: 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 |