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
|
|
|
|
run: sudo apt-get install libncursesw5-dev libpcre++-dev libsqlite3-dev libbz2-dev libcurl4-openssl-dev libreadline-dev zlib1g-dev
|
2020-07-01 21:19:32 +00:00
|
|
|
- name: autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: configure
|
2020-07-01 22:36:18 +00:00
|
|
|
run: ./configure --enable-static
|
2020-07-01 21:19:32 +00:00
|
|
|
- name: make
|
2020-07-01 22:02:37 +00:00
|
|
|
run: make -j4
|
2020-07-01 21:19:32 +00:00
|
|
|
- name: make distcheck
|
2020-07-01 22:02:37 +00:00
|
|
|
run: make distcheck -j4
|
|
|
|
- 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
|