2020-07-01 21:19:32 +00:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-08-27 05:58:05 +00:00
|
|
|
- name: Update apt
|
|
|
|
run: sudo apt-get update
|
2020-07-01 21:40:42 +00:00
|
|
|
- name: Install packages
|
2021-01-30 03:27:57 +00:00
|
|
|
run: sudo apt-get install libncursesw5-dev libpcre++-dev libsqlite3-dev libbz2-dev libcurl4-openssl-dev libreadline-dev zlib1g-dev lcov
|
2021-01-30 03:19:01 +00:00
|
|
|
- name: install cpp-coveralls
|
|
|
|
run: pip install --user cpp-coveralls
|
2020-07-01 21:19:32 +00:00
|
|
|
- name: autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: configure
|
2021-01-30 03:19:01 +00:00
|
|
|
run: ./configure --enable-static --enable-code-coverage
|
2020-07-01 21:19:32 +00:00
|
|
|
- name: make
|
2021-01-30 04:24:16 +00:00
|
|
|
run: make -j2
|
2021-01-30 03:19:01 +00:00
|
|
|
- name: make check
|
|
|
|
run: make check
|
|
|
|
- name: upload cover
|
|
|
|
run: coveralls --gcov-options '\-lp'
|
2020-07-01 21:19:32 +00:00
|
|
|
- name: make distcheck
|
2020-12-11 05:42:44 +00:00
|
|
|
run: make distcheck -j4 || (test -e lnav-*/_build/sub/test/test-suite.log && cat lnav-*/_build/sub/test/test-suite.log)
|
2020-07-01 22:02:37 +00:00
|
|
|
- name: Upload a Build Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
# Artifact name
|
|
|
|
name: Linux 64-bit
|
|
|
|
# A file, directory or wildcard pattern that describes what to upload
|
|
|
|
path: src/lnav
|