2021-02-07 07:29:43 +00:00
|
|
|
name: ci-build
|
2020-07-01 21:19:32 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2021-01-31 06:29:31 +00:00
|
|
|
coverage:
|
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-03-23 23:00:17 +00:00
|
|
|
run: ./configure --disable-static --enable-code-coverage --enable-debug CFLAGS=-g3 CXXFLAGS=-g3
|
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-02-01 06:53:00 +00:00
|
|
|
TRAVIS_JOB_ID: ${{ github.run_id }}-${{ github.run_number }}
|
2021-01-31 07:06:39 +00:00
|
|
|
run: >-
|
2021-01-31 06:24:11 +00:00
|
|
|
coveralls
|
2021-02-01 06:43:19 +00:00
|
|
|
--exclude src/doctest.hh
|
|
|
|
--exclude src/fmtlib
|
|
|
|
--exclude src/ghc
|
|
|
|
--exclude src/k_merge_tree.h
|
|
|
|
--exclude src/mapbox
|
|
|
|
--exclude src/pugixml
|
|
|
|
--exclude src/base/result.h
|
|
|
|
--exclude src/safe
|
|
|
|
--exclude src/spookyhash
|
|
|
|
--exclude src/ww898
|
2021-02-01 23:56:37 +00:00
|
|
|
--exclude src/yajl
|
|
|
|
--exclude test
|
2021-01-31 07:06:39 +00:00
|
|
|
--gcov-options '\-lp'
|
2021-01-31 06:29:31 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Update apt
|
|
|
|
run: sudo apt-get update
|
|
|
|
- name: Install packages
|
2021-05-14 05:00:26 +00:00
|
|
|
run: >-
|
|
|
|
sudo apt-get install -y
|
|
|
|
make
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
g++
|
|
|
|
libpcre3-dev
|
|
|
|
libncurses-dev
|
|
|
|
libsqlite3-dev
|
|
|
|
libbz2-dev
|
|
|
|
libcurl4-openssl-dev
|
|
|
|
libreadline-dev
|
|
|
|
zlib1g-dev
|
2021-01-31 06:29:31 +00:00
|
|
|
- name: autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: configure
|
2021-03-23 23:00:17 +00:00
|
|
|
run: ./configure --disable-static
|
2021-01-31 06:29:31 +00:00
|
|
|
- name: make
|
|
|
|
run: make -j4
|
|
|
|
- name: make distcheck
|
|
|
|
run: make distcheck -j4 || (test -e lnav-*/_build/sub/test/test-suite.log && cat lnav-*/_build/sub/test/test-suite.log)
|
|
|
|
- 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
|