2020-07-01 21:19:32 +00:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2021-01-30 05:27:53 +00:00
|
|
|
runs-on: self-hosted
|
2020-07-01 21:19:32 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-08-27 05:58:05 +00:00
|
|
|
- name: Update apt
|
|
|
|
run: sudo apt-get update
|
2021-01-30 08:13:09 +00:00
|
|
|
# - name: Install packages
|
|
|
|
# run: sudo apt-get install libncursesw5-dev libpcre++-dev libsqlite3-dev libbz2-dev libcurl4-openssl-dev libreadline-dev zlib1g-dev lcov
|
2021-01-30 05:36:49 +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 05:56:30 +00:00
|
|
|
run: ./configure --enable-code-coverage --enable-debug
|
2021-01-30 06:20:42 +00:00
|
|
|
- name: make
|
|
|
|
run: make -j2
|
2021-01-30 03:19:01 +00:00
|
|
|
- name: make check
|
|
|
|
run: make check
|
|
|
|
- name: upload cover
|
2021-01-30 17:08:30 +00:00
|
|
|
env:
|
|
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
2021-01-30 03:19:01 +00:00
|
|
|
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
|